Package studio.mevera.imperat.command
Interface CommandCoordinator<S extends CommandSource>
public interface CommandCoordinator<S extends CommandSource>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <S extends CommandSource>
CommandCoordinator<S>async(@NotNull ExecutorService executorService) voidcoordinate(@NotNull ExecutionContext<S> context, @NotNull CommandExecution<S> execution) static <S extends CommandSource>
CommandCoordinator<S>sync()
-
Method Details
-
sync
-
async
static <S extends CommandSource> CommandCoordinator<S> async(@NotNull @NotNull ExecutorService executorService) -
coordinate
void coordinate(@NotNull @NotNull ExecutionContext<S> context, @NotNull @NotNull CommandExecution<S> execution) throws CommandException - Throws:
CommandException
-