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