Class CommandQueueNameSelector.SameCommandQueueForAllCommands
- java.lang.Object
-
- dk.cloudcreate.essentials.components.foundation.reactive.command.CommandQueueNameSelector.SameCommandQueueForAllCommands
-
- All Implemented Interfaces:
CommandQueueNameSelector
- Enclosing interface:
- CommandQueueNameSelector
public static class CommandQueueNameSelector.SameCommandQueueForAllCommands extends Object implements CommandQueueNameSelector
CommandQueueNameSelectorthat returns the sameQueueNamefor all queued Commands
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface dk.cloudcreate.essentials.components.foundation.reactive.command.CommandQueueNameSelector
CommandQueueNameSelector.SameCommandQueueForAllCommands
-
-
Constructor Summary
Constructors Constructor Description SameCommandQueueForAllCommands(QueueName queueName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueueNameselectDurableQueueNameFor(Object command, CommandHandler commandHandler, Optional<Duration> delayMessageDelivery)Select theQueueNamefor the given combination of command and command handlerStringtoString()
-
-
-
Constructor Detail
-
SameCommandQueueForAllCommands
public SameCommandQueueForAllCommands(QueueName queueName)
-
-
Method Detail
-
selectDurableQueueNameFor
public QueueName selectDurableQueueNameFor(Object command, CommandHandler commandHandler, Optional<Duration> delayMessageDelivery)
Description copied from interface:CommandQueueNameSelectorSelect theQueueNamefor the given combination of command and command handler- Specified by:
selectDurableQueueNameForin interfaceCommandQueueNameSelector- Parameters:
command- the commandcommandHandler- the command handler that's capable of handling the commanddelayMessageDelivery- the message delivery delay- Returns:
- the selected
QueueName
-
-