Class InboxConfig
- java.lang.Object
-
- dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward.InboxConfig
-
public class InboxConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description InboxNameinboxNameThe name of the inboxMessageConsumptionModemessageConsumptionModeThe consumption mode for the inbox'smessageConsumeracross all the different instances in the entire cluster
If you're working withOrderedMessage's then theInboxconsumer must be configured withgetMessageConsumptionMode()having valueMessageConsumptionMode.SingleGlobalConsumerin order to be able to guarantee thatOrderedMessage's are delivered inOrderedMessage.getOrder()perOrderedMessage.getKey()across as manynumberOfParallelMessageConsumersas you wish to use.intnumberOfParallelMessageConsumersThe number of local parallel message consumersRedeliveryPolicyredeliveryPolicyThe message redelivery policy
-
Constructor Summary
Constructors Constructor Description InboxConfig(InboxName inboxName, RedeliveryPolicy redeliveryPolicy, MessageConsumptionMode messageConsumptionMode, int numberOfParallelMessageConsumers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InboxConfigBuilderbuilder()booleanequals(Object o)InboxNamegetInboxName()MessageConsumptionModegetMessageConsumptionMode()intgetNumberOfParallelMessageConsumers()RedeliveryPolicygetRedeliveryPolicy()inthashCode()StringtoString()
-
-
-
Field Detail
-
inboxName
public final InboxName inboxName
The name of the inbox
-
redeliveryPolicy
public final RedeliveryPolicy redeliveryPolicy
The message redelivery policy
-
messageConsumptionMode
public final MessageConsumptionMode messageConsumptionMode
The consumption mode for the inbox'smessageConsumeracross all the different instances in the entire cluster
If you're working withOrderedMessage's then theInboxconsumer must be configured withgetMessageConsumptionMode()having valueMessageConsumptionMode.SingleGlobalConsumerin order to be able to guarantee thatOrderedMessage's are delivered inOrderedMessage.getOrder()perOrderedMessage.getKey()across as manynumberOfParallelMessageConsumersas you wish to use.
-
numberOfParallelMessageConsumers
public final int numberOfParallelMessageConsumers
The number of local parallel message consumers
-
-
Constructor Detail
-
InboxConfig
public InboxConfig(InboxName inboxName, RedeliveryPolicy redeliveryPolicy, MessageConsumptionMode messageConsumptionMode, int numberOfParallelMessageConsumers)
- Parameters:
inboxName- the name of the inboxredeliveryPolicy- the message redelivery policymessageConsumptionMode- the consumption mode for the inbox'smessageConsumeracross all the different instances in the entire cluster
If you're working withOrderedMessage's then theInboxconsumer must be configured withgetMessageConsumptionMode()having valueMessageConsumptionMode.SingleGlobalConsumerin order to be able to guarantee thatOrderedMessage's are delivered inOrderedMessage.getOrder()perOrderedMessage.getKey()across as manynumberOfParallelMessageConsumersas you wish to use.numberOfParallelMessageConsumers- the number of local parallel message consumers
-
-
Method Detail
-
builder
public static InboxConfigBuilder builder()
-
getInboxName
public InboxName getInboxName()
- Returns:
- the name of the inbox
-
getRedeliveryPolicy
public RedeliveryPolicy getRedeliveryPolicy()
- Returns:
- the message redelivery policy
-
getMessageConsumptionMode
public MessageConsumptionMode getMessageConsumptionMode()
- Returns:
- the consumption mode for the inbox's
messageConsumeracross all the different instances in the entire cluster
If you're working withOrderedMessage's then theInboxconsumer must be configured withgetMessageConsumptionMode()having valueMessageConsumptionMode.SingleGlobalConsumerin order to be able to guarantee thatOrderedMessage's are delivered inOrderedMessage.getOrder()perOrderedMessage.getKey()across as manynumberOfParallelMessageConsumersas you wish to use.
-
getNumberOfParallelMessageConsumers
public int getNumberOfParallelMessageConsumers()
- Returns:
- the number of local parallel message consumers
-
-