Interface PersistentQueryControllerClient.Observer
- All Known Implementing Classes:
PersistentQueryControllerClient.ObserverImpl
- Enclosing interface:
- PersistentQueryControllerClient
public static interface PersistentQueryControllerClient.Observer
An object that will be notified of changes to the state of the Controller.
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleConfigUpdate(@NotNull ControllerConfigurationMessage config) Handle an update to theControllerConfigurationMessagevoidHandle when the connection to the Controller has been established, or re-establisehd after adisconnection.voidHandle when the connection to the Controller has been lost.voidhandleModify(@NotNull PersistentQueryInfoMessage previous, @NotNull PersistentQueryInfoMessage newValue) Handle a change to an existing query.voidhandlePut(@NotNull PersistentQueryInfoMessage value) Handle the addition of a query.voidhandleRemove(@NotNull PersistentQueryInfoMessage removedValue) Handle the removal of a query.
-
Method Details
-
handleConfigUpdate
Handle an update to theControllerConfigurationMessage- Parameters:
config- the new configuration
-
handlePut
Handle the addition of a query.- Parameters:
value- thePersistentQueryInfoMessageof the query
-
handleModify
void handleModify(@NotNull @NotNull PersistentQueryInfoMessage previous, @NotNull @NotNull PersistentQueryInfoMessage newValue) Handle a change to an existing query.- Parameters:
previous- the previous valuenewValue- the new value
-
handleRemove
Handle the removal of a query.- Parameters:
removedValue- the serial of the removed query
-
handleConnectionLost
void handleConnectionLost()Handle when the connection to the Controller has been lost. -
handleConnectionEstablished
void handleConnectionEstablished()Handle when the connection to the Controller has been established, or re-establisehd after adisconnection.
-