/** * @param config the {@link ThreadPoolConfig} to configure this pool. */ QueueLimitedThreadPool(ThreadPoolConfig config) { super(config); if (config.getQueueLimit() < 0) { throw new IllegalArgumentException("maxQueuedTasks < 0"); } queuePermits = new Semaphore(config.getQueueLimit()); }
/** * @param config the {@link ThreadPoolConfig} to configure this pool. */ QueueLimitedThreadPool(ThreadPoolConfig config) { super(config); if (config.getQueueLimit() < 0) { throw new IllegalArgumentException("maxQueuedTasks < 0"); } queuePermits = new Semaphore(config.getQueueLimit()); }
/** * @param config the {@link ThreadPoolConfig} to configure this pool. */ QueueLimitedThreadPool(ThreadPoolConfig config) { super(config); if (config.getQueueLimit() < 0) { throw new IllegalArgumentException("maxQueuedTasks < 0"); } queuePermits = new Semaphore(config.getQueueLimit()); }
/** * @param config the {@link ThreadPoolConfig} to configure this pool. */ QueueLimitedThreadPool(ThreadPoolConfig config) { super(config); if (config.getQueueLimit() < 0) { throw new IllegalArgumentException("maxQueuedTasks < 0"); } queuePermits = new Semaphore(config.getQueueLimit()); }
/** * @param config the {@link ThreadPoolConfig} to configure this pool. */ QueueLimitedThreadPool(ThreadPoolConfig config) { super(config); if (config.getQueueLimit() < 0) { throw new IllegalArgumentException("maxQueuedTasks < 0"); } queuePermits = new Semaphore(config.getQueueLimit()); }
/** * @param config the {@link ThreadPoolConfig} to configure this pool. */ QueueLimitedThreadPool(ThreadPoolConfig config) { super(config); if (config.getQueueLimit() < 0) { throw new IllegalArgumentException("maxQueuedTasks < 0"); } queuePermits = new Semaphore(config.getQueueLimit()); }
/** * @param config the {@link ThreadPoolConfig} to configure this pool. */ QueueLimitedThreadPool(ThreadPoolConfig config) { super(config); if (config.getQueueLimit() < 0) { throw new IllegalArgumentException("maxQueuedTasks < 0"); } queuePermits = new Semaphore(config.getQueueLimit()); }
/** * @param config the {@link ThreadPoolConfig} to configure this pool. */ QueueLimitedThreadPool(ThreadPoolConfig config) { super(config); if (config.getQueueLimit() < 0) { throw new IllegalArgumentException("maxQueuedTasks < 0"); } queuePermits = new Semaphore(config.getQueueLimit()); }
/** * @param config the {@link ThreadPoolConfig} to configure this pool. */ QueueLimitedThreadPool(ThreadPoolConfig config) { super(config); if (config.getQueueLimit() < 0) { throw new IllegalArgumentException("maxQueuedTasks < 0"); } queuePermits = new Semaphore(config.getQueueLimit()); }
/** * @param config the {@link ThreadPoolConfig} to configure this pool. */ QueueLimitedThreadPool(ThreadPoolConfig config) { super(config); if (config.getQueueLimit() < 0) { throw new IllegalArgumentException("maxQueuedTasks < 0"); } queuePermits = new Semaphore(config.getQueueLimit()); }
/** * Method is called by a thread pool, when new task could not be added * to a task queue, because task queue is full. * throws {@link RejectedExecutionException} */ protected void onTaskQueueOverflow() { ProbeNotifier.notifyTaskQueueOverflow(this); throw new RejectedExecutionException( "The thread pool's task queue is full, limit: " + config.getQueueLimit()); }
/** * Method is called by a thread pool, when new task could not be added * to a task queue, because task queue is full. * throws {@link RejectedExecutionException} */ protected void onTaskQueueOverflow() { ProbeNotifier.notifyTaskQueueOverflow(this); throw new RejectedExecutionException( "The thread pool's task queue is full, limit: " + config.getQueueLimit()); }
/** * Method is called by a thread pool, when new task could not be added * to a task queue, because task queue is full. * throws {@link RejectedExecutionException} */ protected void onTaskQueueOverflow() { ProbeNotifier.notifyTaskQueueOverflow(this); throw new RejectedExecutionException( "The thread pool's task queue is full, limit: " + config.getQueueLimit()); }
/** * Method is called by a thread pool, when new task could not be added * to a task queue, because task queue is full. * throws {@link RejectedExecutionException} */ protected void onTaskQueueOverflow() { ProbeNotifier.notifyTaskQueueOverflow(this); throw new RejectedExecutionException( "The thread pool's task queue is full, limit: " + config.getQueueLimit()); }
/** * Method is called by a thread pool, when new task could not be added * to a task queue, because task queue is full. * throws {@link RejectedExecutionException} */ protected void onTaskQueueOverflow() { ProbeNotifier.notifyTaskQueueOverflow(this); throw new RejectedExecutionException( "The thread pool's task queue is full, limit: " + config.getQueueLimit()); }
/** * Method is called by a thread pool, when new task could not be added * to a task queue, because task queue is full. * throws {@link RejectedExecutionException} */ protected void onTaskQueueOverflow() { ProbeNotifier.notifyTaskQueueOverflow(this); throw new RejectedExecutionException( "The thread pool's task queue is full, limit: " + config.getQueueLimit()); }
/** * Method is called by a thread pool, when new task could not be added * to a task queue, because task queue is full. * throws {@link RejectedExecutionException} */ protected void onTaskQueueOverflow() { ProbeNotifier.notifyTaskQueueOverflow(this); throw new RejectedExecutionException( "The thread pool's task queue is full, limit: " + config.getQueueLimit()); }
/** * Method is called by a thread pool, when new task could not be added * to a task queue, because task queue is full. * throws {@link RejectedExecutionException} */ protected void onTaskQueueOverflow() { ProbeNotifier.notifyTaskQueueOverflow(this); throw new RejectedExecutionException( "The thread pool's task queue is full, limit: " + config.getQueueLimit()); }
/** * Method is called by a thread pool, when new task could not be added * to a task queue, because task queue is full. * throws {@link RejectedExecutionException} */ protected void onTaskQueueOverflow() { ProbeNotifier.notifyTaskQueueOverflow(this); throw new RejectedExecutionException( "The thread pool's task queue is full, limit: " + config.getQueueLimit()); }
/** * Method is called by a thread pool, when new task could not be added * to a task queue, because task queue is full. * throws {@link RejectedExecutionException} */ protected void onTaskQueueOverflow() { ProbeNotifier.notifyTaskQueueOverflow(this); throw new RejectedExecutionException( "The thread pool's task queue is full, limit: " + config.getQueueLimit()); }