Class Inboxes.DurableQueueBasedInboxes

  • All Implemented Interfaces:
    Inboxes
    Enclosing interface:
    Inboxes

    public static class Inboxes.DurableQueueBasedInboxes
    extends Object
    implements Inboxes
    • Method Detail

      • getOrCreateInbox

        public Inbox getOrCreateInbox​(InboxConfig inboxConfig,
                                      Consumer<Message> messageConsumer)
        Description copied from interface: Inboxes
        Get an existing Inbox instance or create a new instance. If an existing Inbox with a matching InboxName is already created then that instance is returned (irrespective of whether the redeliveryPolicy, etc. have the same values)
        Specified by:
        getOrCreateInbox in interface Inboxes
        Parameters:
        inboxConfig - the inbox configuration
        messageConsumer - the asynchronous message consumer. See PatternMatchingMessageHandler
        Returns:
        the Inbox
      • getOrCreateInbox

        public Inbox getOrCreateInbox​(InboxConfig inboxConfig)
        Description copied from interface: Inboxes
        Get an existing Inbox instance or create a new instance. If an existing Inbox with a matching InboxName is already created then that instance is returned (irrespective of whether the redeliveryPolicy, etc. have the same values)
        Remember to call Outbox.consume(Consumer) to start consuming messages
        Specified by:
        getOrCreateInbox in interface Inboxes
        Parameters:
        inboxConfig - the inbox configuration
        Returns:
        the Inbox