Class IdUCommandExecutor
java.lang.Object
com.io7m.idstore.server.internal.user.IdUCommandExecutor
- All Implemented Interfaces:
IdCommandExecutorType<IdUCommandContext,IdUCommandType<? extends IdUResponseType>, IdUResponseType>
public final class IdUCommandExecutor
extends Object
implements IdCommandExecutorType<IdUCommandContext,IdUCommandType<? extends IdUResponseType>,IdUResponseType>
A command executor for public commands.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(IdUCommandContext context, IdUCommandType<? extends IdUResponseType> command) Execute a command.
-
Constructor Details
-
IdUCommandExecutor
public IdUCommandExecutor()A command executor for public commands.
-
-
Method Details
-
execute
public IdUResponseType execute(IdUCommandContext context, IdUCommandType<? extends IdUResponseType> command) throws IdCommandExecutionFailure, IOException, InterruptedException Description copied from interface:IdCommandExecutorTypeExecute a command.- Specified by:
executein interfaceIdCommandExecutorType<IdUCommandContext,IdUCommandType<? extends IdUResponseType>, IdUResponseType> - Parameters:
context- The execution contextcommand- The command- Returns:
- The result of execution
- Throws:
IdCommandExecutionFailure- On errorsIOExceptionInterruptedException
-