Class PagingStoreFactoryNIO
java.lang.Object
org.apache.activemq.artemis.core.paging.impl.PagingStoreFactoryNIO
- All Implemented Interfaces:
PagingStoreFactory
Integration point between Paging and NIO
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPagingStoreFactoryNIO(StorageManager storageManager, File directory, long syncTimeout, ScheduledExecutorService scheduledExecutor, ExecutorFactory executorFactory, boolean syncNonTransactional, IOCriticalErrorListener critialErrorListener) -
Method Summary
Modifier and TypeMethodDescriptionlongvoidinjectMonitor(FileStoreMonitor monitor) booleannewCursorProvider(PagingStore store, StorageManager storageManager, AddressSettings addressSettings, ArtemisExecutor executor) protected SequentialFileFactorynewFileFactory(String directoryName) newFileFactory(SimpleString address) newStore(SimpleString address, AddressSettings settings) reloadStores(HierarchicalRepository<AddressSettings> addressSettingsRepository) voidremoveFileFactory(SequentialFileFactory fileFactory) voidsetPagingManager(PagingManager pagingManager) voidstop()
-
Field Details
-
ADDRESS_FILE
- See Also:
-
-
Constructor Details
-
PagingStoreFactoryNIO
public PagingStoreFactoryNIO(StorageManager storageManager, File directory, long syncTimeout, ScheduledExecutorService scheduledExecutor, ExecutorFactory executorFactory, boolean syncNonTransactional, IOCriticalErrorListener critialErrorListener)
-
-
Method Details
-
getDirectory
-
getExecutorFactory
-
isSyncNonTransactional
public boolean isSyncNonTransactional() -
getPagingManager
-
getSyncTimeout
public long getSyncTimeout() -
getStorageManager
-
getCritialErrorListener
-
getScheduledExecutor
- Specified by:
getScheduledExecutorin interfacePagingStoreFactory
-
newExecutor
- Specified by:
newExecutorin interfacePagingStoreFactory
-
stop
public void stop()- Specified by:
stopin interfacePagingStoreFactory
-
injectMonitor
- Specified by:
injectMonitorin interfacePagingStoreFactory- Throws:
Exception
-
newCursorProvider
public PageCursorProvider newCursorProvider(PagingStore store, StorageManager storageManager, AddressSettings addressSettings, ArtemisExecutor executor) - Specified by:
newCursorProviderin interfacePagingStoreFactory
-
newStore
- Specified by:
newStorein interfacePagingStoreFactory
-
newFileFactory
- Specified by:
newFileFactoryin interfacePagingStoreFactory- Throws:
Exception
-
removeFileFactory
- Specified by:
removeFileFactoryin interfacePagingStoreFactory- Throws:
Exception
-
setPagingManager
- Specified by:
setPagingManagerin interfacePagingStoreFactory
-
reloadStores
public List<PagingStore> reloadStores(HierarchicalRepository<AddressSettings> addressSettingsRepository) throws Exception - Specified by:
reloadStoresin interfacePagingStoreFactory- Throws:
Exception
-
newFileFactory
-