Class AbstractGrpcService
java.lang.Object
tech.skworks.tachyon.plugin.core.grpc.AbstractGrpcService
- Direct Known Subclasses:
GrpcAuditService, GrpcPlayerDataService, GrpcPlayerSessionService, GrpcSnapshotService, GrpcSystemService
Project Tachyon
Class AbstractGrpcService
- Since:
- 1.0.0-SNAPSHOT
- Version:
- 1.0
- Author:
- Jimmy (vSKAH) - 13/04/2026
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NotNull BackendStubProviderprotected final @Nullable TachyonMetrics -
Constructor Summary
ConstructorsConstructorDescriptionAbstractGrpcService(@Nullable TachyonMetrics tachyonMetrics, @NotNull BackendStubProvider backendStubProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> CompletableFuture<T> asyncCall(Executor executor, TachyonLogger logger, String actionName, Supplier<T> grpcCall) protected CompletableFuture<Void> asyncRun(Executor executor, TachyonLogger logger, String actionName, Runnable grpcCall) protected abstract <T> voidhandleGrpcExceptions(@NotNull String actionName, @NotNull tech.skworks.tachyon.libs.io.grpc.StatusRuntimeException ex, CompletableFuture<T> future) voidrecordError(String method, Exception e) voidrecordError(String method, String errorCode) abstract voidshutdown()startTimer(String method)
-
Field Details
-
tachyonMetrics
-
backendStubProvider
-
-
Constructor Details
-
AbstractGrpcService
public AbstractGrpcService(@Nullable @Nullable TachyonMetrics tachyonMetrics, @NotNull @NotNull BackendStubProvider backendStubProvider)
-
-
Method Details
-
startTimer
-
recordError
-
recordError
-
handleGrpcExceptions
protected abstract <T> void handleGrpcExceptions(@NotNull @NotNull String actionName, @NotNull @NotNull tech.skworks.tachyon.libs.io.grpc.StatusRuntimeException ex, CompletableFuture<T> future) -
asyncCall
protected <T> CompletableFuture<T> asyncCall(Executor executor, TachyonLogger logger, String actionName, Supplier<T> grpcCall) -
asyncRun
protected CompletableFuture<Void> asyncRun(Executor executor, TachyonLogger logger, String actionName, Runnable grpcCall) -
shutdown
public abstract void shutdown()
-