Interface CommandDispatcher


  • public interface CommandDispatcher
    • Method Summary

      Modifier and Type Method Description
      void execute​(CommandMessage commandMessage)
      Dispatches a command.
      java.util.concurrent.Future<java.lang.Boolean> executeAsync​(CommandMessage commandMessage)
      Dispatches a command asynchronously.
      CommandShell getShell​(User user)
      Gets a command shell for a specific user.
    • Method Detail

      • getShell

        CommandShell getShell​(User user)
        Gets a command shell for a specific user.
        Parameters:
        user - user to get a shell for.
        Returns:
        command shell instance.
      • executeAsync

        java.util.concurrent.Future<java.lang.Boolean> executeAsync​(CommandMessage commandMessage)
        Dispatches a command asynchronously.
        Parameters:
        commandMessage - Command message to execute.
        Returns:
        Future instance to track execution.