public static interface Host.LifecycleAwareStateListener extends Host.StateListener
StateListenerthat 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|
Gets invoked when the listener is registered with a cluster, or at cluster startup if the listener was registered at initialization with
Gets invoked when the listener is unregistered from a cluster, or at cluster shutdown if the listener was not unregistered.
void onRegister(Cluster cluster)
void onUnregister(Cluster cluster)
Copyright © 2012–2018. All rights reserved.