@Test public void builderRefreshPeriodTooShort() throws Exception { exception.expect(IllegalArgumentException.class); exception.expectMessage("RefreshPeriod is too short"); RateLimiterConfig.custom() .timeoutDuration(TIMEOUT) .limitRefreshPeriod(Duration.ZERO) .limitForPeriod(LIMIT) .build(); }
public static Builder custom() { return new Builder(); }
RateLimiterConfig implements Serializable { public static Builder custom() { return new Builder(); } }
RateLimiterConfig implements Serializable { public static Builder custom() { return new Builder(); } private  RateLimiterConfig(Duration timeoutDuration, Duration limitRefreshPeriod,
        int limitForPeriod, boolean writableStackTraceEnabled); }
RateLimiterConfig implements Serializable { public static Builder custom() { return new Builder(); } private  RateLimiterConfig(Duration timeoutDuration, Duration limitRefreshPeriod,
        int limitForPeriod, boolean writableStackTraceEnabled); static Builder custom(); static Builder from(RateLimiterConfig prototype); static RateLimiterConfig ofDefaults(); Duration getTimeoutDuration(); Duration getLimitRefreshPeriod(); int getLimitForPeriod(); boolean isWritableStackTraceEnabled(); @Override String toString(); }
RateLimiterConfig implements Serializable { public static Builder custom() { return new Builder(); } private  RateLimiterConfig(Duration timeoutDuration, Duration limitRefreshPeriod,
        int limitForPeriod, boolean writableStackTraceEnabled); static Builder custom(); static Builder from(RateLimiterConfig prototype); static RateLimiterConfig ofDefaults(); Duration getTimeoutDuration(); Duration getLimitRefreshPeriod(); int getLimitForPeriod(); boolean isWritableStackTraceEnabled(); @Override String toString();  }