com.twitter.common.stats
Interface StatsProvider.RequestTimer

All Known Implementing Classes:
RequestStats
Enclosing interface:
StatsProvider

public static interface StatsProvider.RequestTimer

A stat for tracking service requests.


Method Summary
 void incErrors()
          Accumulates the error counter and the request counter.
 void incReconnects()
          Accumulates the reconnect counter.
 void incTimeouts()
          Accumulates the timeout counter.
 void requestComplete(long latencyMicros)
          Accumulates a request and its latency.
 

Method Detail

requestComplete

void requestComplete(long latencyMicros)
Accumulates a request and its latency.

Parameters:
latencyMicros - The elapsed time required to complete the request.

incErrors

void incErrors()
Accumulates the error counter and the request counter.


incReconnects

void incReconnects()
Accumulates the reconnect counter.


incTimeouts

void incTimeouts()
Accumulates the timeout counter.