Package org.cache2k.integration
Interface AsyncCacheLoader<K,V>
-
@Deprecated public interface AsyncCacheLoader<K,V>
Deprecated.Replaced withAsyncCacheLoader
, to be removed in version 2.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AsyncCacheLoader.Callback<V>
Deprecated.Callback for async cache load.static interface
AsyncCacheLoader.Context<K,V>
Deprecated.Relevant context information for a single load request.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
load(K key, AsyncCacheLoader.Context<K,V> context, AsyncCacheLoader.Callback<V> callback)
Deprecated.Starts an asynchronous load operation.
-
-
-
Method Detail
-
load
void load(K key, AsyncCacheLoader.Context<K,V> context, AsyncCacheLoader.Callback<V> callback) throws Exception
Deprecated.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.
- Parameters:
key
- key of the value to loadcontext
- additional context information for the load operationcallback
- interface to notify for load completion- Throws:
Exception
- an exception, if the load operation cannot be started- Since:
- 1.4
-
-