Class GrpcAuditService

java.lang.Object
tech.skworks.tachyon.plugin.core.grpc.AbstractGrpcService
tech.skworks.tachyon.plugin.core.audit.GrpcAuditService
All Implemented Interfaces:
AuditService

public class GrpcAuditService extends AbstractGrpcService implements AuditService
Project Tachyon Class AuditManager
Since:
1.0.0-SNAPSHOT
Version:
2.0
Author:
Jimmy (vSKAH) - 06/04/2026
  • Constructor Details

  • Method Details

    • log

      public void log(@NotNull @NotNull AuditEntry auditEntry)
      Description copied from interface: AuditService
      Records 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:
      log in interface AuditService
    • handleGrpcExceptions

      protected <T> void handleGrpcExceptions(@NotNull @NotNull String actionName, @NotNull @NotNull io.grpc.StatusRuntimeException ex, CompletableFuture<T> future)
      Specified by:
      handleGrpcExceptions in class AbstractGrpcService
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in class AbstractGrpcService