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 InitializationContext
public Cache getCache()
getCache
in interface InitializationContext
public KeyPartitioner getKeyPartitioner()
InitializationContext
SegmentedAdvancedLoadWriteStore
).getKeyPartitioner
in interface InitializationContext
public TimeService getTimeService()
getTimeService
in interface InitializationContext
public ByteBufferFactory getByteBufferFactory()
InitializationContext
ByteBuffer
objects.getByteBufferFactory
in interface InitializationContext
public <K,V> MarshallableEntryFactory<K,V> getMarshallableEntryFactory()
InitializationContext
MarshallableEntry
objects.getMarshallableEntryFactory
in interface InitializationContext
@Deprecated public ExecutorService getExecutor()
InitializationContext
getExecutor
in interface InitializationContext
public Executor getNonBlockingExecutor()
InitializationContext
getNonBlockingExecutor
in interface InitializationContext
public BlockingManager getBlockingManager()
InitializationContext
getBlockingManager
in interface InitializationContext
public PersistenceMarshaller getPersistenceMarshaller()
InitializationContext
getPersistenceMarshaller
in interface InitializationContext
public GlobalConfiguration getGlobalConfiguration()
InitializationContext
getGlobalConfiguration
in interface InitializationContext
Copyright © 2021 JBoss by Red Hat. All rights reserved.