Interface CommandQueueNameSelector
-
- All Known Implementing Classes:
CommandQueueNameSelector.SameCommandQueueForAllCommands
public interface CommandQueueNameSelectorDurableLocalCommandBusstrategy for selecting whichDurableQueuesQueueNameto use for a given combination of command and command handler
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCommandQueueNameSelector.SameCommandQueueForAllCommandsCommandQueueNameSelectorthat returns the sameQueueNamefor all queued Commands
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static CommandQueueNameSelector.SameCommandQueueForAllCommandsdefaultCommandQueueForAllCommands()static CommandQueueNameSelector.SameCommandQueueForAllCommandssameCommandQueueForAllCommands(QueueName queueName)QueueNameselectDurableQueueNameFor(Object command, CommandHandler commandHandler, Optional<Duration> delayMessageDelivery)Select theQueueNamefor the given combination of command and command handler
-
-
-
Method Detail
-
selectDurableQueueNameFor
QueueName selectDurableQueueNameFor(Object command, CommandHandler commandHandler, Optional<Duration> delayMessageDelivery)
Select theQueueNamefor the given combination of command and command handler- Parameters:
command- the commandcommandHandler- the command handler that's capable of handling the commanddelayMessageDelivery- the message delivery delay- Returns:
- the selected
QueueName
-
sameCommandQueueForAllCommands
static CommandQueueNameSelector.SameCommandQueueForAllCommands sameCommandQueueForAllCommands(QueueName queueName)
-
defaultCommandQueueForAllCommands
static CommandQueueNameSelector.SameCommandQueueForAllCommands defaultCommandQueueForAllCommands()
-
-