public class InitializationContextImpl extends java.lang.Object implements InitializationContext
| Constructor and Description |
|---|
InitializationContextImpl(StoreConfiguration configuration,
Cache cache,
KeyPartitioner keyPartitioner,
StreamingMarshaller marshaller,
TimeService timeService,
ByteBufferFactory byteBufferFactory,
MarshalledEntryFactory marshalledEntryFactory,
MarshallableEntryFactory marshallableEntryFactory,
java.util.concurrent.ExecutorService executorService) |
| Modifier and Type | Method and Description |
|---|---|
ByteBufferFactory |
getByteBufferFactory()
To be used for building
ByteBuffer objects. |
Cache |
getCache() |
StoreConfiguration |
getConfiguration() |
java.util.concurrent.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.
|
MarshallableEntryFactory |
getMarshallableEntryFactory()
Should be used to build all
MarshallableEntry objects. |
MarshalledEntryFactory |
getMarshalledEntryFactory()
To be used for building
MarshalledEntry objects. |
StreamingMarshaller |
getMarshaller() |
TimeService |
getTimeService() |
public InitializationContextImpl(StoreConfiguration configuration, Cache cache, KeyPartitioner keyPartitioner, StreamingMarshaller marshaller, TimeService timeService, ByteBufferFactory byteBufferFactory, MarshalledEntryFactory marshalledEntryFactory, MarshallableEntryFactory marshallableEntryFactory, java.util.concurrent.ExecutorService executorService)
public StoreConfiguration getConfiguration()
getConfiguration in interface InitializationContextpublic Cache getCache()
getCache in interface InitializationContextpublic KeyPartitioner getKeyPartitioner()
InitializationContextSegmentedAdvancedLoadWriteStore).getKeyPartitioner in interface InitializationContextpublic StreamingMarshaller getMarshaller()
getMarshaller in interface InitializationContextpublic TimeService getTimeService()
getTimeService in interface InitializationContextpublic ByteBufferFactory getByteBufferFactory()
InitializationContextByteBuffer objects.getByteBufferFactory in interface InitializationContextpublic MarshallableEntryFactory getMarshallableEntryFactory()
InitializationContextMarshallableEntry objects.getMarshallableEntryFactory in interface InitializationContextpublic java.util.concurrent.ExecutorService getExecutor()
InitializationContextgetExecutor in interface InitializationContextpublic MarshalledEntryFactory getMarshalledEntryFactory()
InitializationContextMarshalledEntry objects.getMarshalledEntryFactory in interface InitializationContext