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
Cluster.register(Host.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, onUp
void onRegister(Cluster cluster)
Cluster.register(Host.StateListener)
.onRegister
in interface Host.StateListener
cluster
- the cluster that this listener is registered with.void onUnregister(Cluster cluster)
onUnregister
in interface Host.StateListener
cluster
- the cluster that this listener was registered with.Copyright © 2012–2024. All rights reserved.