public interface LifecycleAwareLatencyTracker extends LatencyTracker
LatencyTrackerthat 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 tracker is registered with a cluster, or at cluster startup if the tracker was registered at initialization with
Gets invoked when the tracker is unregistered from a cluster, or at cluster shutdown if the tracker was not unregistered.
void onRegister(Cluster cluster)
cluster- the cluster that this tracker is registered with.
void onUnregister(Cluster cluster)
cluster- the cluster that this tracker was registered with.