Class Inboxes.DurableQueueBasedInboxes.DurableQueueBasedInbox

    • Constructor Detail

      • DurableQueueBasedInbox

        public DurableQueueBasedInbox​(InboxConfig config)
    • Method Detail

      • isConsumingMessages

        public boolean isConsumingMessages()
        Description copied from interface: Inbox
        Is the provided Message consumer consuming messages from the Outbox
        Specified by:
        isConsumingMessages in interface Inbox
        Returns:
        Is the provided Message consumer consuming messages from the Outbox
      • stopConsuming

        public void stopConsuming()
        Description copied from interface: Inbox
        Stop consuming messages from the Outbox. Calling this method will remove the message consumer and to resume message consumption you need to call Inbox.consume(Consumer)
        Specified by:
        stopConsuming in interface Inbox
      • name

        public InboxName name()
        Description copied from interface: Inbox
        The name of the inbox
        Specified by:
        name in interface Inbox
        Returns:
        the name of the inbox
      • addMessageReceived

        public void addMessageReceived​(Message message)
        Description copied from interface: Inbox
        Register or add a message that has been received
        This message will be stored durably (without any duplication check) in connection with the currently active UnitOfWork (or a new UnitOfWork will be created in case no there isn't an active UnitOfWork).
        The message will be delivered asynchronously to the message consumer
        Specified by:
        addMessageReceived in interface Inbox
        Parameters:
        message - the message
        See Also:
        OrderedMessage
      • getNumberOfUndeliveredMessages

        public long getNumberOfUndeliveredMessages()
        Description copied from interface: Inbox
        Get the number of message received that haven't been processed yet (or successfully processed) by the message consumer
        Specified by:
        getNumberOfUndeliveredMessages in interface Inbox
        Returns:
        the number of message received that haven't been processed yet (or successfully processed) by the message consumer