Package org.apache.activemq.store
Interface ReferenceStore
- All Superinterfaces:
MessageStore,org.apache.activemq.Service
- All Known Subinterfaces:
TopicReferenceStore
Represents a message store which is used by the persistent implementations
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.activemq.store.MessageStore
MessageStore.StoreType -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddMessageReference(ConnectionContext context, org.apache.activemq.command.MessageId messageId, ReferenceStore.ReferenceData data) Adds a message reference to the message storegetMessageReference(org.apache.activemq.command.MessageId identity) Looks up a message using either the String messageID or the messageNumber.voidsetBatch(org.apache.activemq.command.MessageId startAfter) allow caching cursors to set the current batch offset when cache is exhaustedbooleanMethods inherited from interface org.apache.activemq.store.MessageStore
addMessage, addMessage, asyncAddQueueMessage, asyncAddQueueMessage, asyncAddTopicMessage, asyncAddTopicMessage, dispose, getDestination, getMessage, getMessageCount, getMessageSize, getMessageStoreStatistics, getType, isEmpty, isPrioritizedMessages, recover, recoverMessages, recoverNextMessages, registerIndexListener, removeAllMessages, removeAsyncMessage, removeMessage, resetBatching, setMemoryUsage, setPrioritizedMessages, updateMessageMethods inherited from interface org.apache.activemq.Service
start, stop
-
Method Details
-
addMessageReference
boolean addMessageReference(ConnectionContext context, org.apache.activemq.command.MessageId messageId, ReferenceStore.ReferenceData data) throws IOException Adds a message reference to the message store- Returns:
- true if reference was added, false if it is a duplicate and not added
- Throws:
IOException
-
getMessageReference
ReferenceStore.ReferenceData getMessageReference(org.apache.activemq.command.MessageId identity) throws IOException Looks up a message using either the String messageID or the messageNumber. Implementations are encouraged to fill in the missing key if its easy to do so.- Throws:
IOException
-
supportsExternalBatchControl
boolean supportsExternalBatchControl()- Returns:
- true if it supports external batch control
-
setBatch
void setBatch(org.apache.activemq.command.MessageId startAfter) Description copied from interface:MessageStoreallow caching cursors to set the current batch offset when cache is exhausted- Specified by:
setBatchin interfaceMessageStore
-
getStoreLock
Lock getStoreLock()
-