Class DelegatingCacheLoader<K,V>
java.lang.Object
org.infinispan.persistence.support.DelegatingCacheLoader<K,V>
- All Implemented Interfaces:
Lifecycle
,CacheLoader<K,
V>
- Since:
- 6.0
- Author:
- Mircea Markus
-
Field Details
-
actual
-
ctx
-
-
Constructor Details
-
DelegatingCacheLoader
-
-
Method Details
-
init
Description copied from interface:CacheLoader
Used to initialize a cache loader. Typically invoked by thePersistenceManager
when setting up cache loaders.- Specified by:
init
in interfaceCacheLoader<K,
V>
-
start
public void start()Description copied from interface:Lifecycle
Invoked on component start -
stop
public void stop()Description copied from interface:Lifecycle
Invoked on component stop -
contains
Description copied from interface:CacheLoader
Returns true if the storage contains an entry associated with the given key.- Specified by:
contains
in interfaceCacheLoader<K,
V>
-
loadEntry
Description copied from interface:CacheLoader
Fetches an entry from the storage. If aMarshallableEntry
needs to be created here,InitializationContext.getMarshallableEntryFactory()
()} andInitializationContext.getByteBufferFactory()
should be used.- Specified by:
loadEntry
in interfaceCacheLoader<K,
V> - Returns:
- the entry, or null if the entry does not exist
-
undelegate
-