public Builder waitDurationInOpenState(Duration waitDurationInOpenState){
  if (waitDurationInOpenState.getSeconds() < 1) {
    throw new IllegalArgumentException("waitDurationInOpenState must be at least 1000[ms]");
  }
  this.waitDurationInOpenState=waitDurationInOpenState;
  return this;
}

public Builder waitDurationInOpenState ( Duration waitDurationInOpenState ) { if ( waitDurationInOpenState . getSeconds ( ) < 1 ) { throw new IllegalArgumentException ( "waitDurationInOpenState must be at least 1000[ms]" ) ; } this . waitDurationInOpenState = waitDurationInOpenState ; return this ; }
configures the wait duration which specifies how long the circuitbreaker should stay open , before it switches to half open . default value is 60 seconds .
