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 TypeMethodDescriptionvoid
handleConfigUpdate
(@NotNull ControllerConfigurationMessage config) Handle an update to theControllerConfigurationMessage
void
Handle when the connection to the Controller has been established, or re-establisehd after adisconnection
.void
Handle when the connection to the Controller has been lost.void
handleModify
(@NotNull PersistentQueryInfoMessage previous, @NotNull PersistentQueryInfoMessage newValue) Handle a change to an existing query.void
handlePut
(@NotNull PersistentQueryInfoMessage value) Handle the addition of a query.void
handleRemove
(@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
- thePersistentQueryInfoMessage
of 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
.
-