Package org.infinispan.persistence.spi
Interface InitializationContext
-
- All Known Implementing Classes:
InitializationContextImpl
@ThreadSafe public interface InitializationContextAggregates the initialisation state needed by either aCacheLoaderor aCacheWriter.- Since:
- 6.0
- Author:
- Mircea Markus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBufferFactorygetByteBufferFactory()To be used for buildingByteBufferobjects.CachegetCache()<T extends StoreConfiguration>
TgetConfiguration()ExecutorServicegetExecutor()Returns the preferred executor to be used by stores if needed.KeyPartitionergetKeyPartitioner()The configured partitioner that can be used to determine which segment a given key belongs to.MarshalledEntryFactorygetMarshalledEntryFactory()To be used for buildingMarshalledEntryobjects.StreamingMarshallergetMarshaller()TimeServicegetTimeService()
-
-
-
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 buildingByteBufferobjects.
-
getMarshalledEntryFactory
MarshalledEntryFactory getMarshalledEntryFactory()
To be used for buildingMarshalledEntryobjects.
-
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
-
-