Package org.infinispan.persistence.spi
Interface InitializationContext
-
- All Known Implementing Classes:
InitializationContextImpl
@ThreadSafe public interface InitializationContext
Aggregates the initialisation state needed by either aCacheLoader
or aCacheWriter
.- Since:
- 6.0
- Author:
- Mircea Markus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBufferFactory
getByteBufferFactory()
To be used for buildingByteBuffer
objects.Cache
getCache()
<T extends StoreConfiguration>
TgetConfiguration()
ExecutorService
getExecutor()
Returns the preferred executor to be used by stores if needed.KeyPartitioner
getKeyPartitioner()
The configured partitioner that can be used to determine which segment a given key belongs to.MarshalledEntryFactory
getMarshalledEntryFactory()
To be used for buildingMarshalledEntry
objects.StreamingMarshaller
getMarshaller()
TimeService
getTimeService()
-
-
-
Method Detail
-
getConfiguration
<T extends StoreConfiguration> T getConfiguration()
-
getCache
Cache getCache()
-
getKeyPartitioner
KeyPartitioner getKeyPartitioner()
The configured partitioner that can be used to determine which segment a given key belongs to. This is useful when a store is segmented (ie. implementsSegmentedAdvancedLoadWriteStore
).- Returns:
- partitioner that can provide what segment a key maps to
-
getMarshaller
StreamingMarshaller getMarshaller()
-
getTimeService
TimeService getTimeService()
-
getByteBufferFactory
ByteBufferFactory getByteBufferFactory()
To be used for buildingByteBuffer
objects.
-
getMarshalledEntryFactory
MarshalledEntryFactory getMarshalledEntryFactory()
To be used for buildingMarshalledEntry
objects.
-
getExecutor
ExecutorService getExecutor()
Returns the preferred executor to be used by stores if needed. Stores normally shouldn't need this unless they *must* perform some blocking code asynchronously.- Returns:
- the executor to be used with stores
-
-