Class DelegatingCacheLoader<K,V>
java.lang.Object
org.infinispan.persistence.support.DelegatingCacheLoader<K,V>
- All Implemented Interfaces:
org.infinispan.commons.api.Lifecycle,CacheLoader<K,V>
- Since:
- 6.0
- Author:
- Mircea Markus
-
Field Details
-
actual
-
ctx
-
-
Constructor Details
-
DelegatingCacheLoader
-
-
Method Details
-
init
Description copied from interface:CacheLoaderUsed to initialize a cache loader. Typically invoked by thePersistenceManagerwhen setting up cache loaders.- Specified by:
initin interfaceCacheLoader<K,V>
-
start
public void start()- Specified by:
startin interfaceorg.infinispan.commons.api.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.infinispan.commons.api.Lifecycle
-
contains
Description copied from interface:CacheLoaderReturns true if the storage contains an entry associated with the given key.- Specified by:
containsin interfaceCacheLoader<K,V>
-
loadEntry
Description copied from interface:CacheLoaderFetches an entry from the storage. If aMarshallableEntryneeds to be created here,InitializationContext.getMarshallableEntryFactory()()} andInitializationContext.getByteBufferFactory()should be used.- Specified by:
loadEntryin interfaceCacheLoader<K,V> - Returns:
- the entry, or null if the entry does not exist
-
undelegate
-