com.twitter.common.net.loadbalancing
Interface RequestTracker<T>

All Known Subinterfaces:
LoadBalancer<K>
All Known Implementing Classes:
LoadBalancerImpl, TrafficMonitor

public interface RequestTracker<T>

Tracks requests made to a backend service.


Nested Class Summary
static class RequestTracker.RequestResult
           
 
Method Summary
 void requestResult(T key, RequestTracker.RequestResult result, long requestTimeNanos)
          Informs the tracker of a completed request.
 

Method Detail

requestResult

void requestResult(T key,
                   RequestTracker.RequestResult result,
                   long requestTimeNanos)
Informs the tracker of a completed request.

Parameters:
key - Key to identify the owner of the request.
result - Result of the request.
requestTimeNanos - Time duration spent waiting for the request to complete.