Package septogeddon.pluginquery.api
Interface QueryEventBus
- All Known Implementing Classes:
QueryEventBusImpl
public interface QueryEventBus
Handle and manage incoming events
- Author:
- Thito Yalasatria Sunarya
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addParent
(QueryEventBus eventBus) Add parent that listen to this event managervoid
dispatchConnectionState
(QueryConnection connection) Dispatch a Connection State change eventvoid
dispatchMessage
(QueryConnection connection, String channel, byte[] message) Dispatch a Query Message received eventdefault void
registerListener
(QueryConnectionStateListener listener) Register a connection state change listenervoid
registerListener
(QueryListener listener) Register a listenerdefault void
registerListener
(QueryMessageListener listener) Register a message listenervoid
removeParent
(QueryEventBus eventBus) Remove a parent, become an orphanvoid
unregisterListener
(QueryListener listener) Unregister a listener
-
Method Details
-
addParent
Add parent that listen to this event manager- Parameters:
eventBus
-
-
removeParent
Remove a parent, become an orphan- Parameters:
eventBus
-
-
dispatchConnectionState
Dispatch a Connection State change event- Parameters:
connection
-
-
dispatchMessage
Dispatch a Query Message received event- Parameters:
connection
-channel
-message
-
-
registerListener
Register a listener- Parameters:
listener
-
-
unregisterListener
Unregister a listener- Parameters:
listener
-
-
registerListener
Register a message listener- Parameters:
listener
-
-
registerListener
Register a connection state change listener- Parameters:
listener
-
-