Package org.apache.cassandra.net
Class LatencySubscribers
java.lang.Object
org.apache.cassandra.net.LatencySubscribers
Callback that
DynamicEndpointSnitch listens to in order
to update host scores.
FIXME: rename/specialise, since only used by DES?-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(InetAddressAndPort address, long latency, TimeUnit unit) voidmaybeAdd(RequestCallback cb, InetAddressAndPort address, long latency, TimeUnit unit) Track latency information for the dynamic snitchvoidsubscribe(LatencySubscribers.Subscriber subscriber)
-
Constructor Details
-
LatencySubscribers
public LatencySubscribers()
-
-
Method Details
-
subscribe
-
add
-
maybeAdd
Track latency information for the dynamic snitch- Parameters:
cb- the callback associated with this message -- this lets us know if it's a message type we're interested inaddress- the host that replied to the message
-