Class Outboxes.DurableQueueBasedOutboxes
- java.lang.Object
-
- dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward.Outboxes.DurableQueueBasedOutboxes
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classOutboxes.DurableQueueBasedOutboxes.DurableQueueBasedOutbox-
Nested classes/interfaces inherited from interface dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward.Outboxes
Outboxes.DurableQueueBasedOutboxes
-
-
Constructor Summary
Constructors Constructor Description DurableQueueBasedOutboxes(DurableQueues durableQueues, FencedLockManager fencedLockManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutboxgetOrCreateOutbox(OutboxConfig outboxConfig)Get an existingOutboxinstance or create a new instance.OutboxgetOrCreateOutbox(OutboxConfig outboxConfig, Consumer<Message> messageConsumer)Get an existingOutboxinstance or create a new instance.Collection<Outbox>getOutboxes()-
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.Outboxes
getOrCreateForwardingOutbox
-
-
-
-
Constructor Detail
-
DurableQueueBasedOutboxes
public DurableQueueBasedOutboxes(DurableQueues durableQueues, FencedLockManager fencedLockManager)
-
-
Method Detail
-
getOrCreateOutbox
public Outbox getOrCreateOutbox(OutboxConfig outboxConfig)
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
public Outbox getOrCreateOutbox(OutboxConfig outboxConfig, Consumer<Message> messageConsumer)
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
public Collection<Outbox> getOutboxes()
Description copied from interface:Outboxes- Specified by:
getOutboxesin interfaceOutboxes- Returns:
- all the
Outboxinstances managed by thisOutboxesinstance
-
-