Class Outboxes.DurableQueueBasedOutboxes
java.lang.Object
dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward.Outboxes.DurableQueueBasedOutboxes
- All Implemented Interfaces:
Outboxes
- Enclosing interface:
- Outboxes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassNested classes/interfaces inherited from interface dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward.Outboxes
Outboxes.DurableQueueBasedOutboxes -
Constructor Summary
ConstructorsConstructorDescriptionDurableQueueBasedOutboxes(DurableQueues durableQueues, FencedLockManager fencedLockManager) -
Method Summary
Modifier and TypeMethodDescriptiongetOrCreateOutbox(OutboxConfig outboxConfig) Get an existingOutboxinstance or create a new instance.getOrCreateOutbox(OutboxConfig outboxConfig, Consumer<Message> messageConsumer) Get an existingOutboxinstance 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.Outboxes
getOrCreateForwardingOutbox
-
Constructor Details
-
DurableQueueBasedOutboxes
-
-
Method Details
-
getOrCreateOutbox
Description copied from interface:OutboxesGet an existingOutboxinstance or create a new instance. If an existingOutboxwith a matchingOutboxNameis 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:
getOrCreateOutboxin interfaceOutboxes- Parameters:
outboxConfig- the outbox configuration- Returns:
- the
Outbox
-
getOrCreateOutbox
Description copied from interface:OutboxesGet an existingOutboxinstance or create a new instance. If an existingOutboxwith a matchingOutboxNameis already created then that instance is returned (irrespective of whether the redeliveryPolicy, etc. have the same values)- Specified by:
getOrCreateOutboxin interfaceOutboxes- Parameters:
outboxConfig- the outbox configurationmessageConsumer- the asynchronous message consumer. SeePatternMatchingMessageHandler- Returns:
- the
Outbox
-
getOutboxes
Description copied from interface:Outboxes- Specified by:
getOutboxesin interfaceOutboxes- Returns:
- all the
Outboxinstances managed by thisOutboxesinstance
-