Interface QueryProcessorConnection.QueryProcessorConnectionCommandHandler

All Known Implementing Classes:
ProgressCommandHandler, RemoteQueryScopeCommandHandler, RemoteScriptLoaderCommandHandler
Enclosing interface:
QueryProcessorConnection

public static interface QueryProcessorConnection.QueryProcessorConnectionCommandHandler
A command handler that can be attached to this QueryProcessorConnection.
  • Method Summary

    Modifier and Type Method Description
    void handleClientDeath​(com.fishlib.net.api.ClientEntry clientEntry)
    Called when a client dies.
    boolean handleQueryProcessorCommand​(com.fishlib.net.api.ClientEntry clientEntry, com.fishlib.base.Command command)
    Handles a command from the remote query processor that the query processor connection itself does not know how to handle.
  • Method Details

    • handleQueryProcessorCommand

      boolean handleQueryProcessorCommand​(com.fishlib.net.api.ClientEntry clientEntry, com.fishlib.base.Command command)
      Handles a command from the remote query processor that the query processor connection itself does not know how to handle. If true is returned, then no other attached QueryProcessorConnectionCommandHandler has an opportunity to examine the command. If false is returned, the next attached QueryProcessorConnectionCommandHandler is given an opportunity to service this command.
      Parameters:
      clientEntry - the client entry for the remote query processor
      command - the command that was sent by the remote query processor
      Returns:
      true if the command was handled, false otherwise
    • handleClientDeath

      void handleClientDeath​(com.fishlib.net.api.ClientEntry clientEntry)
      Called when a client dies.
      Parameters:
      clientEntry - the clientEntry that died.