Class BlockFileMessageStore
- java.lang.Object
-
- net.timewalker.ffmq4.storage.message.impl.AbstractMessageStore
-
- net.timewalker.ffmq4.storage.message.impl.BlockFileMessageStore
-
- All Implemented Interfaces:
MessageStore
public final class BlockFileMessageStore extends AbstractMessageStore
BlockFileMessageStore
-
-
Field Summary
-
Fields inherited from class net.timewalker.ffmq4.storage.message.impl.AbstractMessageStore
dataStore, queueDef
-
-
Constructor Summary
Constructors Constructor Description BlockFileMessageStore(QueueDefinition queueDef, AsyncTaskManager asyncTaskManager)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LinkedDataStorecreateDataStore()voiddelete()Delete the storeintgetDeliveryMode()Get the delivery mode for this storebooleanisFailSafe()Test if the store is syncing on writeprotected intreplaceMessage(int handle, AbstractMessage message)protected AbstractMessageretrieveMessage(int handle)Retrieve the message with the given handleprotected intretrieveMessagePriority(int handle)Retrieve the priority of the message with the given handleprotected intstoreMessage(AbstractMessage message, int previousHandle)Store a message right after the given handle-
Methods inherited from class net.timewalker.ffmq4.storage.message.impl.AbstractMessageStore
close, commitChanges, commitChanges, delete, first, getAbsoluteStoreUsage, getStoreUsage, init, isLocked, lock, next, previous, replace, retrieve, size, store, toString, unlock
-
-
-
-
Constructor Detail
-
BlockFileMessageStore
public BlockFileMessageStore(QueueDefinition queueDef, AsyncTaskManager asyncTaskManager)
Constructor
-
-
Method Detail
-
createDataStore
protected LinkedDataStore createDataStore()
- Specified by:
createDataStorein classAbstractMessageStore
-
getDeliveryMode
public int getDeliveryMode()
Description copied from interface:MessageStoreGet the delivery mode for this store
-
retrieveMessage
protected AbstractMessage retrieveMessage(int handle) throws javax.jms.JMSException
Description copied from class:AbstractMessageStoreRetrieve the message with the given handle- Specified by:
retrieveMessagein classAbstractMessageStore- Throws:
javax.jms.JMSException
-
retrieveMessagePriority
protected int retrieveMessagePriority(int handle) throws javax.jms.JMSExceptionDescription copied from class:AbstractMessageStoreRetrieve the priority of the message with the given handle- Specified by:
retrieveMessagePriorityin classAbstractMessageStore- Throws:
javax.jms.JMSException
-
replaceMessage
protected int replaceMessage(int handle, AbstractMessage message) throws javax.jms.JMSException- Specified by:
replaceMessagein classAbstractMessageStore- Throws:
javax.jms.JMSException
-
storeMessage
protected int storeMessage(AbstractMessage message, int previousHandle) throws javax.jms.JMSException
Description copied from class:AbstractMessageStoreStore a message right after the given handle- Specified by:
storeMessagein classAbstractMessageStore- Throws:
javax.jms.JMSException
-
delete
public void delete() throws javax.jms.JMSExceptionDescription copied from interface:MessageStoreDelete the store- Throws:
javax.jms.JMSException
-
isFailSafe
public boolean isFailSafe()
Description copied from interface:MessageStoreTest if the store is syncing on write
-
-