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>
@API(status=INTERNAL,
consumers="cloud.commandframework.*")
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 TypeMethodDescription@NonNull CompletableFuture<CommandResult<C>>
coordinateExecution
(@NonNull CommandContext<C> commandContext, @NonNull Queue<@NonNull String> input) Coordinate the execution of a command and return the resultMethods inherited from class cloud.commandframework.execution.CommandExecutionCoordinator
getCommandTree, simpleCoordinator
-
Method Details
-
coordinateExecution
public @NonNull CompletableFuture<CommandResult<C>> coordinateExecution(@NonNull CommandContext<C> commandContext, @NonNull Queue<@NonNull 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
-