Interface QueryListener

All Known Subinterfaces:
QueryConnectionStateListener, QueryMessageListener
All Known Implementing Classes:
BungeePluginQuery, QueryForwarder, SpigotPluginQuery, VelocityPluginQuery

public interface QueryListener
Listen to Connection State Change and Incoming Query Message
Author:
Thito Yalasatria Sunarya
  • Method Details

    • onConnectionStateChange

      void onConnectionStateChange(QueryConnection connection) throws Throwable
      Called when QueryConnection.isConnected() value changed
      Parameters:
      connection -
      Throws:
      Throwable - any error that could possibly happen during the event listener execution
    • onQueryReceived

      void onQueryReceived(QueryConnection connection, String channel, byte[] message) throws Throwable
      Called when the connection received a query message
      Parameters:
      connection -
      channel -
      message -
      Throws:
      Throwable - any error that could possibly happen during the event listener execution