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 Detail

      • 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()