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