Class QueryForwarder
java.lang.Object
septogeddon.pluginquery.library.forwarder.QueryForwarder
- All Implemented Interfaces:
QueryListener
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryForwardergetForwarder(QueryConnection connection) voidonConnectionStateChange(QueryConnection connection) Called whenQueryConnection.isConnected()value changedvoidonQueryReceived(QueryConnection connection, String channel, byte[] message) Called when the connection received a query messagevoidregisterChannel(String channel) voidregisterConnection(Collection<? extends QueryConnection> connections) voidregisterConnection(QueryConnection... connections) voidunregisterChannel(String channel) voidunregisterConnection(QueryConnection connection)
-
Method Details
-
getForwarder
-
getSource
-
registerChannel
-
unregisterChannel
-
registerConnection
-
registerConnection
-
unregisterConnection
-
getForwardedConnections
-
getChannels
-
onConnectionStateChange
Description copied from interface:QueryListenerCalled whenQueryConnection.isConnected()value changed- Specified by:
onConnectionStateChangein interfaceQueryListener- Parameters:
connection-- Throws:
Throwable- any error that could possibly happen during the event listener execution
-
onQueryReceived
public void onQueryReceived(QueryConnection connection, String channel, byte[] message) throws Throwable Description copied from interface:QueryListenerCalled when the connection received a query message- Specified by:
onQueryReceivedin interfaceQueryListener- Parameters:
connection-channel-message-- Throws:
Throwable- any error that could possibly happen during the event listener execution
-