java.lang.Object
dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward.Inboxes.DurableQueueBasedInboxes
All Implemented Interfaces:
Inboxes
Enclosing interface:
Inboxes

public static class Inboxes.DurableQueueBasedInboxes extends Object implements Inboxes
  • Constructor Details

  • Method Details

    • 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
    • getInboxes

      public Collection<Inbox> getInboxes()
      Description copied from interface: Inboxes
      Get all the Inbox instances managed by this Inboxes instance
      Specified by:
      getInboxes in interface Inboxes
      Returns:
      all the Inbox instances managed by this Inboxes instance