Class Inboxes.DurableQueueBasedInboxes
java.lang.Object
dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward.Inboxes.DurableQueueBasedInboxes
- All Implemented Interfaces:
Inboxes
- Enclosing interface:
- Inboxes
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward.Inboxes
Inboxes.DurableQueueBasedInboxes -
Constructor Summary
ConstructorsConstructorDescriptionDurableQueueBasedInboxes(DurableQueues durableQueues, FencedLockManager fencedLockManager) -
Method Summary
Modifier and TypeMethodDescriptiongetOrCreateInbox(InboxConfig inboxConfig) Get an existingInboxinstance or create a new instance.getOrCreateInbox(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, waitMethods inherited from interface dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward.Inboxes
getOrCreateInbox
-
Constructor Details
-
DurableQueueBasedInboxes
-
-
Method Details
-
getOrCreateInbox
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
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
Description copied from interface:Inboxes- Specified by:
getInboxesin interfaceInboxes- Returns:
- all the
Inboxinstances managed by thisInboxesinstance
-