Class GrpcAuditService
java.lang.Object
tech.skworks.tachyon.plugin.core.grpc.AbstractGrpcService
tech.skworks.tachyon.plugin.core.audit.GrpcAuditService
- All Implemented Interfaces:
AuditService
Project Tachyon
Class AuditManager
- Since:
- 1.0.0-SNAPSHOT
- Version:
- 1.0
- Author:
- Jimmy (vSKAH) - 06/04/2026
-
Field Summary
Fields inherited from class AbstractGrpcService
backendStubProvider, tachyonMetrics -
Constructor Summary
ConstructorsConstructorDescriptionGrpcAuditService(@Nullable TachyonMetrics tachyonMetrics, @NotNull BackendStubProvider backendStubProvider, @NotNull TachyonConfig config) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> voidhandleGrpcExceptions(@NotNull String actionName, @NotNull tech.skworks.tachyon.libs.io.grpc.StatusRuntimeException ex, CompletableFuture<T> future) voidRecords a specific action performed by or affecting a player, along with its context.voidshutdown()Methods inherited from class AbstractGrpcService
asyncCall, asyncRun, recordError, recordError, startTimer
-
Constructor Details
-
GrpcAuditService
public GrpcAuditService(@Nullable @Nullable TachyonMetrics tachyonMetrics, @NotNull @NotNull BackendStubProvider backendStubProvider, @NotNull @NotNull TachyonConfig config)
-
-
Method Details
-
log
public void log(@NotNull @NotNull String uuid, @NotNull @NotNull String action, @NotNull @NotNull String details) Description copied from interface:AuditServiceRecords a specific action performed by or affecting a player, along with its context.This method is designed to be fire-and-forget. The underlying implementation handle the asynchronous dispatching of the log to prevent any blocking on the main server thread.
- Specified by:
login interfaceAuditService- Parameters:
uuid- The unique identifier (UUID) of the player associated with this event.action- A clear, categorizable identifier for the event (e.g.,"TRADE_ACCEPT","ITEM_DROP","FLAG_TRIGGERED").details- Additional contextual information about the event.
-
handleGrpcExceptions
protected <T> void handleGrpcExceptions(@NotNull @NotNull String actionName, @NotNull @NotNull tech.skworks.tachyon.libs.io.grpc.StatusRuntimeException ex, CompletableFuture<T> future) - Specified by:
handleGrpcExceptionsin classAbstractGrpcService
-
shutdown
public void shutdown()- Specified by:
shutdownin classAbstractGrpcService
-