public class InitializationContextImpl extends Object implements InitializationContext
| Constructor and Description |
|---|
InitializationContextImpl(StoreConfiguration configuration,
Cache cache,
KeyPartitioner keyPartitioner,
PersistenceMarshaller marshaller,
TimeService timeService,
ByteBufferFactory byteBufferFactory,
MarshallableEntryFactory marshallableEntryFactory,
Executor nonBlockingExecutor,
GlobalConfiguration globalConfiguration,
BlockingManager blockingManager) |
| Modifier and Type | Method and Description |
|---|---|
BlockingManager |
getBlockingManager()
Returns a manager that is designed to execute tasks that might block.
|
ByteBufferFactory |
getByteBufferFactory()
To be used for building
ByteBuffer objects. |
Cache |
getCache() |
StoreConfiguration |
getConfiguration() |
ExecutorService |
getExecutor()
Deprecated.
|
GlobalConfiguration |
getGlobalConfiguration()
Returns the global configuration
|
KeyPartitioner |
getKeyPartitioner()
The configured partitioner that can be used to determine which segment a given key belongs to.
|
<K,V> MarshallableEntryFactory<K,V> |
getMarshallableEntryFactory()
Should be used to build all
MarshallableEntry objects. |
Executor |
getNonBlockingExecutor()
Returns an executor for non-blocking tasks.
|
PersistenceMarshaller |
getPersistenceMarshaller()
Returns the persistence marshaller which should be used to marshall/unmarshall all stored bytes.
|
TimeService |
getTimeService() |
public InitializationContextImpl(StoreConfiguration configuration, Cache cache, KeyPartitioner keyPartitioner, PersistenceMarshaller marshaller, TimeService timeService, ByteBufferFactory byteBufferFactory, MarshallableEntryFactory marshallableEntryFactory, Executor nonBlockingExecutor, GlobalConfiguration globalConfiguration, BlockingManager blockingManager)
public StoreConfiguration getConfiguration()
getConfiguration in interface InitializationContextpublic Cache getCache()
getCache in interface InitializationContextpublic KeyPartitioner getKeyPartitioner()
InitializationContextSegmentedAdvancedLoadWriteStore).getKeyPartitioner in interface InitializationContextpublic TimeService getTimeService()
getTimeService in interface InitializationContextpublic ByteBufferFactory getByteBufferFactory()
InitializationContextByteBuffer objects.getByteBufferFactory in interface InitializationContextpublic <K,V> MarshallableEntryFactory<K,V> getMarshallableEntryFactory()
InitializationContextMarshallableEntry objects.getMarshallableEntryFactory in interface InitializationContext@Deprecated public ExecutorService getExecutor()
InitializationContextgetExecutor in interface InitializationContextpublic Executor getNonBlockingExecutor()
InitializationContextgetNonBlockingExecutor in interface InitializationContextpublic BlockingManager getBlockingManager()
InitializationContextgetBlockingManager in interface InitializationContextpublic PersistenceMarshaller getPersistenceMarshaller()
InitializationContextgetPersistenceMarshaller in interface InitializationContextpublic GlobalConfiguration getGlobalConfiguration()
InitializationContextgetGlobalConfiguration in interface InitializationContextCopyright © 2022 JBoss by Red Hat. All rights reserved.