Class AsyncJSONResolverService


  • @Singleton
    public class AsyncJSONResolverService
    extends java.lang.Object
    Service for resolving json asynchronously in order to move database queries off server thread.
    • Method Detail

      • resolve

        public <T> JSONStorage.StoredJSON resolve​(long newerThanTimestamp,
                                                  DataID dataID,
                                                  java.util.UUID serverUUID,
                                                  java.util.function.Function<java.util.UUID,​T> creator)
      • resolve

        public <T> JSONStorage.StoredJSON resolve​(long newerThanTimestamp,
                                                  DataID dataID,
                                                  java.util.function.Supplier<T> jsonCreator)