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:
- 2.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 io.grpc.StatusRuntimeException ex, CompletableFuture<T> future) voidlog(@NotNull AuditEntry auditEntry) Records a specific action performed by or affecting a player, along with its context.voidshutdown()Methods inherited from class AbstractGrpcService
asyncCall, asyncRun, recordError, recordError, recordPlayerLockExhausted, recordPlayerLockRetry, startProfileLoadTimer, startTimer
-
Constructor Details
-
GrpcAuditService
public GrpcAuditService(@Nullable @Nullable TachyonMetrics tachyonMetrics, @NotNull @NotNull BackendStubProvider backendStubProvider, @NotNull @NotNull TachyonConfig config)
-
-
Method Details
-
log
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
-
handleGrpcExceptions
protected <T> void handleGrpcExceptions(@NotNull @NotNull String actionName, @NotNull @NotNull io.grpc.StatusRuntimeException ex, CompletableFuture<T> future) - Specified by:
handleGrpcExceptionsin classAbstractGrpcService
-
shutdown
public void shutdown()- Specified by:
shutdownin classAbstractGrpcService
-