private State(CircuitState circuitState,Duration timeoutDuration,EventCounter counter){
  this.circuitState=circuitState;
  this.counter=counter;
  if (timeoutDuration.isZero() || timeoutDuration.isNegative()) {
    timedOutTimeNanos=0L;
  }
 else {
    timedOutTimeNanos=ticker.read() + timeoutDuration.toNanos();
  }
}

private State ( CircuitState circuitState , Duration timeoutDuration , EventCounter counter ) { this . circuitState = circuitState ; this . counter = counter ; if ( timeoutDuration . isZero ( ) || timeoutDuration . isNegative ( ) ) { timedOutTimeNanos = 0L ; } else { timedOutTimeNanos = ticker . read ( ) + timeoutDuration . toNanos ( ) ; } }
creates a new instance .
