Interface PagingStoreFactory
-
- All Known Implementing Classes:
PagingStoreFactoryDatabase,PagingStoreFactoryNIO
public interface PagingStoreFactoryThe integration point between the PagingManger and the File System (aka SequentialFiles)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ScheduledExecutorServicegetScheduledExecutor()voidinjectMonitor(FileStoreMonitor monitor)PageCursorProvidernewCursorProvider(PagingStore store, StorageManager storageManager, AddressSettings addressSettings, ArtemisExecutor executor)default ExecutornewExecutor()SequentialFileFactorynewFileFactory(SimpleString address)PagingStorenewStore(SimpleString address, AddressSettings addressSettings)List<PagingStore>reloadStores(HierarchicalRepository<AddressSettings> addressSettingsRepository)voidremoveFileFactory(SequentialFileFactory fileFactory)voidsetPagingManager(PagingManager manager)voidstop()
-
-
-
Method Detail
-
newStore
PagingStore newStore(SimpleString address, AddressSettings addressSettings)
-
newCursorProvider
PageCursorProvider newCursorProvider(PagingStore store, StorageManager storageManager, AddressSettings addressSettings, ArtemisExecutor executor)
-
stop
void stop() throws InterruptedException
- Throws:
InterruptedException
-
setPagingManager
void setPagingManager(PagingManager manager)
-
reloadStores
List<PagingStore> reloadStores(HierarchicalRepository<AddressSettings> addressSettingsRepository) throws Exception
- Throws:
Exception
-
newFileFactory
SequentialFileFactory newFileFactory(SimpleString address) throws Exception
- Throws:
Exception
-
removeFileFactory
void removeFileFactory(SequentialFileFactory fileFactory) throws Exception
- Throws:
Exception
-
injectMonitor
void injectMonitor(FileStoreMonitor monitor) throws Exception
- Throws:
Exception
-
getScheduledExecutor
default ScheduledExecutorService getScheduledExecutor()
-
newExecutor
default Executor newExecutor()
-
-