Package cloud.commandframework.execution
Class CommandExecutionCoordinator.SimpleCoordinator<C>
- java.lang.Object
-
- cloud.commandframework.execution.CommandExecutionCoordinator<C>
-
- cloud.commandframework.execution.CommandExecutionCoordinator.SimpleCoordinator<C>
-
- Type Parameters:
C
- Command sender type
- Enclosing class:
- CommandExecutionCoordinator<C>
public static final class CommandExecutionCoordinator.SimpleCoordinator<C> extends CommandExecutionCoordinator<C>
A simple command execution coordinator that executes all commands immediately, on the calling thread
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class cloud.commandframework.execution.CommandExecutionCoordinator
CommandExecutionCoordinator.SimpleCoordinator<C>
-
-
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<CommandResult<C>>
coordinateExecution(@NonNull CommandContext<C> commandContext, @NonNull java.util.Queue<@NonNull java.lang.String> input)
Coordinate the execution of a command and return the result-
Methods inherited from class cloud.commandframework.execution.CommandExecutionCoordinator
getCommandTree, simpleCoordinator
-
-
-
-
Method Detail
-
coordinateExecution
public java.util.concurrent.CompletableFuture<CommandResult<C>> coordinateExecution(@NonNull CommandContext<C> commandContext, @NonNull java.util.Queue<@NonNull java.lang.String> input)
Description copied from class:CommandExecutionCoordinator
Coordinate the execution of a command and return the result- Specified by:
coordinateExecution
in classCommandExecutionCoordinator<C>
- Parameters:
commandContext
- Command contextinput
- Command input- Returns:
- Future that completes with the result
-
-