Package io.iworkflow.core.command
Class CommandRequest
java.lang.Object
io.iworkflow.core.command.CommandRequest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandRequest
forAllCommandCompleted
(BaseCommand... commands) forAllCommandCompleted will wait for all the commands to completestatic CommandRequest
forAnyCommandCombinationCompleted
(List<List<String>> commandCombinationLists, BaseCommand... commands) This will wait for any combination to complete.static CommandRequest
forAnyCommandCompleted
(BaseCommand... commands) forAnyCommandCompleted will wait for any the commands to completeabstract List<CommandCombination>
abstract List<BaseCommand>
abstract CommandWaitingType
-
Field Details
-
empty
-
-
Constructor Details
-
CommandRequest
public CommandRequest()
-
-
Method Details
-
getCommands
-
getCommandCombinations
-
getCommandWaitingType
-
forAllCommandCompleted
forAllCommandCompleted will wait for all the commands to complete- Parameters:
commands
- all the commands- Returns:
- the command request
-
forAnyCommandCompleted
forAnyCommandCompleted will wait for any the commands to complete- Parameters:
commands
- all the commands- Returns:
- the command request
-
forAnyCommandCombinationCompleted
public static CommandRequest forAnyCommandCombinationCompleted(List<List<String>> commandCombinationLists, BaseCommand... commands) This will wait for any combination to complete. Using this requires every command has a commandId when created. Functionally this one can cover both forAllCommandCompleted, forAnyCommandCompleted. So the other two are like "shortcuts" of it.- Parameters:
commandCombinationLists
- a list of different combinations, each combination is a list of String as CommandIdscommands
- all the commands- Returns:
- the command request
-