public IoEventQueueThrottle(IoEventSizeEstimator eventSizeEstimator, int threshold) { if (eventSizeEstimator == null) { throw new NullPointerException("eventSizeEstimator"); } this.eventSizeEstimator = eventSizeEstimator; setThreshold(threshold); }
/** * Creates a new IoEventQueueThrottle instance * * @param eventSizeEstimator The IoEventSizeEstimator instance * @param threshold The events threshold */ public IoEventQueueThrottle(IoEventSizeEstimator eventSizeEstimator, int threshold) { if (eventSizeEstimator == null) { throw new IllegalArgumentException("eventSizeEstimator"); } this.eventSizeEstimator = eventSizeEstimator; setThreshold(threshold); }
/** * Creates a new IoEventQueueThrottle instance * * @param eventSizeEstimator The IoEventSizeEstimator instance * @param threshold The events threshold */ public IoEventQueueThrottle(IoEventSizeEstimator eventSizeEstimator, int threshold) { if (eventSizeEstimator == null) { throw new IllegalArgumentException("eventSizeEstimator"); } this.eventSizeEstimator = eventSizeEstimator; setThreshold(threshold); }