Class Inboxes.DurableQueueBasedInboxes
- java.lang.Object
-
- dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward.Inboxes.DurableQueueBasedInboxes
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classInboxes.DurableQueueBasedInboxes.DurableQueueBasedInbox-
Nested classes/interfaces inherited from interface dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward.Inboxes
Inboxes.DurableQueueBasedInboxes
-
-
Constructor Summary
Constructors Constructor Description DurableQueueBasedInboxes(DurableQueues durableQueues, FencedLockManager fencedLockManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Inbox>getInboxes()InboxgetOrCreateInbox(InboxConfig inboxConfig)Get an existingInboxinstance or create a new instance.InboxgetOrCreateInbox(InboxConfig inboxConfig, Consumer<Message> messageConsumer)Get an existingInboxinstance or create a new instance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward.Inboxes
getOrCreateInbox
-
-
-
-
Constructor Detail
-
DurableQueueBasedInboxes
public DurableQueueBasedInboxes(DurableQueues durableQueues, FencedLockManager fencedLockManager)
-
-
Method Detail
-
getOrCreateInbox
public Inbox getOrCreateInbox(InboxConfig inboxConfig, Consumer<Message> messageConsumer)
Description copied from interface:InboxesGet an existingInboxinstance or create a new instance. If an existingInboxwith a matchingInboxNameis already created then that instance is returned (irrespective of whether the redeliveryPolicy, etc. have the same values)- Specified by:
getOrCreateInboxin interfaceInboxes- Parameters:
inboxConfig- the inbox configurationmessageConsumer- the asynchronous message consumer. SeePatternMatchingMessageHandler- Returns:
- the
Inbox
-
getOrCreateInbox
public Inbox getOrCreateInbox(InboxConfig inboxConfig)
Description copied from interface:InboxesGet an existingInboxinstance or create a new instance. If an existingInboxwith a matchingInboxNameis already created then that instance is returned (irrespective of whether the redeliveryPolicy, etc. have the same values)
Remember to callOutbox.consume(Consumer)to start consuming messages- Specified by:
getOrCreateInboxin interfaceInboxes- Parameters:
inboxConfig- the inbox configuration- Returns:
- the
Inbox
-
getInboxes
public Collection<Inbox> getInboxes()
Description copied from interface:Inboxes- Specified by:
getInboxesin interfaceInboxes- Returns:
- all the
Inboxinstances managed by thisInboxesinstance
-
-