public static interface Host.LifecycleAwareStateListener extends Host.StateListener
StateListener
that tracks when it gets registered or unregistered with a cluster.
This interface exists only for backward-compatibility reasons: starting with the 3.0 branch of the driver, its
methods are on the parent interface directly.Modifier and Type | Method and Description |
---|---|
void |
onRegister(Cluster cluster)
Gets invoked when the listener is registered with a cluster, or at cluster startup if the
listener was registered at initialization with
com.datastax.driver.core.Cluster.Initializer#register(StateListener) . |
void |
onUnregister(Cluster cluster)
Gets invoked when the listener is unregistered from a cluster, or at cluster shutdown if
the listener was not unregistered.
|
onAdd, onDown, onRemove, onSuspected, onUp
void onRegister(Cluster cluster)
com.datastax.driver.core.Cluster.Initializer#register(StateListener)
.cluster
- the cluster that this listener is registered with.void onUnregister(Cluster cluster)
cluster
- the cluster that this listener was registered with.