Interface AsyncCacheLoader<K,​V>

    • Method Detail

      • load

        void load​(K key,
                  AsyncCacheLoader.Context<K,​V> context,
                  AsyncCacheLoader.Callback<V> callback)
           throws Exception
        Starts an asynchronous load operation.

        If this call throws an exception, it is assumed that the load operation was not started and the callback will not called.

        key - key of the value to load
        context - additional context information for the load operation
        callback - interface to notify for load completion
        Exception - an exception, if the load operation cannot be started