public void cancel(){
synchronized (lock) {
    if (this.latency == NO_TARGET) {
      throw new IllegalStateException("Request already" + " cancelled");
    }
    if (!requests.remove(this)) {
      throw new InternalError("Latency request " + this + " not found");
    }
    if (requests.isEmpty())     requests=null;
    this.latency=NO_TARGET;
    adjustLatencyIfNeeded();
  }
}

public void cancel ( ) { synchronized ( lock ) { if ( this . latency == NO_TARGET ) { throw new IllegalStateException ( "Request already" + " cancelled" ) ; } if ( ! requests . remove ( this ) ) { throw new InternalError ( "Latency request " + this + " not found" ) ; } if ( requests . isEmpty ( ) ) requests = null ; this . latency = NO_TARGET ; adjustLatencyIfNeeded ( ) ; } }
cancels this latency request .
