Class GrpcComponentService
java.lang.Object
tech.skworks.tachyon.plugin.internal.util.AbstractGrpcService
tech.skworks.tachyon.plugin.internal.player.component.GrpcComponentService
Project Tachyon
Class ComponentService
- Since:
- 1.0.0-SNAPSHOT
- Version:
- 1.0
- Author:
- Jimmy (vSKAH) - 07/04/2026
-
Field Summary
Fields inherited from class AbstractGrpcService
grpcClientManager, tachyonMetrics -
Constructor Summary
ConstructorsConstructorDescriptionGrpcComponentService(GrpcClientManager grpcClientManager, File dataFolder, TachyonMetrics tachyonMetrics) -
Method Summary
Modifier and TypeMethodDescription<T extends tech.skworks.tachyon.libs.com.google.protobuf.Message>
CompletableFuture<Void> deleteComponent(UUID uuid, T component) voidflushQueueForPlayer(UUID uuid) protected <T> voidhandleGrpcExceptions(String actionName, tech.skworks.tachyon.libs.io.grpc.StatusRuntimeException ex, CompletableFuture<T> future) loadProfile(UUID uuid) <T extends tech.skworks.tachyon.libs.com.google.protobuf.Message>
CompletableFuture<Void> saveComponent(UUID uuid, T component) saveProfile(UUID uuid, Collection<tech.skworks.tachyon.libs.com.google.protobuf.Message> components) voidshutdown()Methods inherited from class AbstractGrpcService
asyncCall, asyncRun, recordError, recordError, startTimer
-
Constructor Details
-
GrpcComponentService
public GrpcComponentService(GrpcClientManager grpcClientManager, File dataFolder, @Nullable TachyonMetrics tachyonMetrics)
-
-
Method Details
-
loadProfile
-
handleGrpcExceptions
protected <T> void handleGrpcExceptions(String actionName, tech.skworks.tachyon.libs.io.grpc.StatusRuntimeException ex, CompletableFuture<T> future) - Specified by:
handleGrpcExceptionsin classAbstractGrpcService
-
saveProfile
public CompletableFuture<Void> saveProfile(UUID uuid, Collection<tech.skworks.tachyon.libs.com.google.protobuf.Message> components) -
saveComponent
public <T extends tech.skworks.tachyon.libs.com.google.protobuf.Message> CompletableFuture<Void> saveComponent(UUID uuid, T component) -
deleteComponent
public <T extends tech.skworks.tachyon.libs.com.google.protobuf.Message> CompletableFuture<Void> deleteComponent(UUID uuid, T component) -
flushQueueForPlayer
-
shutdown
public void shutdown()
-