Class AsyncJSONResolverService
java.lang.Object
com.djrapitops.plan.delivery.webserver.cache.AsyncJSONResolverService
Service for resolving json asynchronously in order to move database queries off server thread.
-
Constructor Summary
ConstructorDescriptionAsyncJSONResolverService(PlanConfig config, Processing processing, JSONStorage jsonStorage)
-
Method Summary
Modifier and TypeMethodDescriptionresolve(Optional<Long> newerThanTimestamp, DataID dataID, ServerUUID serverUUID, Function<ServerUUID,T> creator)
-
Constructor Details
-
AsyncJSONResolverService
@Inject public AsyncJSONResolverService(PlanConfig config, Processing processing, JSONStorage jsonStorage)
-
-
Method Details
-
resolve
public <T> JSONStorage.StoredJSON resolve(Optional<Long> newerThanTimestamp, DataID dataID, ServerUUID serverUUID, Function<ServerUUID,T> creator) -
resolve
public <T> JSONStorage.StoredJSON resolve(Optional<Long> newerThanTimestamp, DataID dataID, Supplier<T> jsonCreator)
-