me.prettyprint.cassandra.connection
Interface HOpTimer

All Known Implementing Classes:
NullOpTimer, SpeedForJOpTimer

public interface HOpTimer

Timer For Cassandra operations


Method Summary
 Object start()
          Start timing an operation.
 void stop(Object token, String tagName, boolean success)
           
 

Method Detail

start

Object start()
Start timing an operation.

Returns:
- a token that will be returned to the timer when stop(...) in invoked

stop

void stop(Object token,
          String tagName,
          boolean success)
Parameters:
token - - the token returned from start
tagName - - the name of the tag
success - - did the oepration succeed


Copyright © 2011. All Rights Reserved.