Class AbstractGrpcService
java.lang.Object
tech.skworks.tachyon.plugin.internal.util.AbstractGrpcService
- Direct Known Subclasses:
GrpcComponentService, GrpcSnapshotService, HeartBeatService
Project Tachyon
Class AbstractGrpcService
- Since:
- 1.0.0-SNAPSHOT
- Version:
- 1.0
- Author:
- Jimmy (vSKAH) - 13/04/2026
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final GrpcClientManagerprotected final @Nullable TachyonMetrics -
Constructor Summary
ConstructorsConstructorDescriptionAbstractGrpcService(@Nullable TachyonMetrics tachyonMetrics, GrpcClientManager grpcClientManager) -
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(String actionName, tech.skworks.tachyon.libs.io.grpc.StatusRuntimeException ex, CompletableFuture<T> future) voidrecordError(String method, Exception e) voidrecordError(String method, String errorCode) startTimer(String method)
-
Field Details
-
tachyonMetrics
-
grpcClientManager
-
-
Constructor Details
-
AbstractGrpcService
public AbstractGrpcService(@Nullable @Nullable TachyonMetrics tachyonMetrics, GrpcClientManager grpcClientManager)
-
-
Method Details
-
startTimer
-
recordError
-
recordError
-
handleGrpcExceptions
protected abstract <T> void handleGrpcExceptions(String actionName, 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)
-