public class PagingStoreFactoryNIO extends Object implements PagingStoreFactory
Modifier and Type | Field and Description |
---|---|
protected boolean |
syncNonTransactional |
Constructor and Description |
---|
PagingStoreFactoryNIO(StorageManager storageManager,
File directory,
long syncTimeout,
ScheduledExecutorService scheduledExecutor,
ExecutorFactory executorFactory,
boolean syncNonTransactional,
IOCriticalErrorListener critialErrorListener) |
Modifier and Type | Method and Description |
---|---|
PageCursorProvider |
newCursorProvider(PagingStore store,
StorageManager storageManager,
AddressSettings addressSettings,
Executor executor) |
SequentialFileFactory |
newFileFactory(SimpleString address) |
PagingStore |
newStore(SimpleString address,
AddressSettings settings) |
List<PagingStore> |
reloadStores(HierarchicalRepository<AddressSettings> addressSettingsRepository) |
void |
setPagingManager(PagingManager pagingManager) |
void |
stop() |
public PagingStoreFactoryNIO(StorageManager storageManager, File directory, long syncTimeout, ScheduledExecutorService scheduledExecutor, ExecutorFactory executorFactory, boolean syncNonTransactional, IOCriticalErrorListener critialErrorListener)
public void stop()
stop
in interface PagingStoreFactory
public PageCursorProvider newCursorProvider(PagingStore store, StorageManager storageManager, AddressSettings addressSettings, Executor executor)
newCursorProvider
in interface PagingStoreFactory
public PagingStore newStore(SimpleString address, AddressSettings settings)
newStore
in interface PagingStoreFactory
public SequentialFileFactory newFileFactory(SimpleString address) throws Exception
newFileFactory
in interface PagingStoreFactory
Exception
public void setPagingManager(PagingManager pagingManager)
setPagingManager
in interface PagingStoreFactory
public List<PagingStore> reloadStores(HierarchicalRepository<AddressSettings> addressSettingsRepository) throws Exception
reloadStores
in interface PagingStoreFactory
Exception
Copyright © 2016 The Apache Software Foundation. All rights reserved.