Package cloud.commandframework.execution
Interface CommandExecutionHandler.FutureCommandExecutionHandler<C>
- Type Parameters:
C
- Command sender type
- All Superinterfaces:
CommandExecutionHandler<C>
- Enclosing interface:
- CommandExecutionHandler<C>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface CommandExecutionHandler.FutureCommandExecutionHandler<C>
extends CommandExecutionHandler<C>
Handler that is invoked whenever a
Command
is executed
by a command sender- Since:
- 1.6.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface cloud.commandframework.execution.CommandExecutionHandler
CommandExecutionHandler.FutureCommandExecutionHandler<C>, CommandExecutionHandler.NullCommandExecutionHandler<C>
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
execute
(@NonNull CommandContext<C> commandContext) Handle command executionCompletableFuture<@Nullable Void>
executeFuture
(@NonNull CommandContext<C> commandContext) Handle command execution
-
Method Details
-
execute
Description copied from interface:CommandExecutionHandler
Handle command execution- Specified by:
execute
in interfaceCommandExecutionHandler<C>
- Parameters:
commandContext
- Command context
-
executeFuture
Description copied from interface:CommandExecutionHandler
Handle command execution- Specified by:
executeFuture
in interfaceCommandExecutionHandler<C>
- Parameters:
commandContext
- Command context- Returns:
- future that completes when the command has finished execution
-