Class LatencySubscribers

java.lang.Object
org.apache.cassandra.net.LatencySubscribers

public class LatencySubscribers extends Object
Callback that DynamicEndpointSnitch listens to in order to update host scores. FIXME: rename/specialise, since only used by DES?
  • Constructor Details

    • LatencySubscribers

      public LatencySubscribers()
  • Method Details

    • subscribe

      public void subscribe(LatencySubscribers.Subscriber subscriber)
    • add

      public void add(InetAddressAndPort address, long latency, TimeUnit unit)
    • maybeAdd

      public void maybeAdd(RequestCallback cb, InetAddressAndPort address, long latency, TimeUnit unit)
      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 in
      address - the host that replied to the message