Interface ReferenceStore

All Superinterfaces:
MessageStore, org.apache.activemq.Service
All Known Subinterfaces:
TopicReferenceStore

public interface ReferenceStore extends MessageStore
Represents a message store which is used by the persistent implementations
  • 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: MessageStore
      allow caching cursors to set the current batch offset when cache is exhausted
      Specified by:
      setBatch in interface MessageStore
    • getStoreLock

      Lock getStoreLock()