private ExecutorService defaultCallbackExecutor() { ThreadFactory threadFactory = ThreadFactories.namedThreadFactory(getThreadPrefix() + "-callbacks", ThreadFactories.Type.DAEMON); return new ThreadPoolExecutor( 0, getMaxCallbackThreadPoolSize(), 60L, TimeUnit.SECONDS, new LinkedBlockingQueue<>(threadWorkQueueLimit), threadFactory, (r, e) -> log.warn( "Exceeded the limit of requests waiting for execution. " + " Increase the value of the system property {} to prevent these situations in the " + "future. Current value of {} = {}.", OPTION_THREAD_WORK_QUEUE_LIMIT, OPTION_THREAD_WORK_QUEUE_LIMIT, threadWorkQueueLimit) ); }
.setThreadFactory(ThreadFactories.namedThreadFactory(options.getThreadPrefix() + "-io", ThreadFactories.Type.DAEMON)) .setDefaultIOReactorConfig(reactorConfig) .setConnectionManager(connectionManager) throw new RuntimeException("Reactor " + options.getThreadPrefix() + "not set up correctly", e);
DefaultConnectingIOReactor reactor = new DefaultConnectingIOReactor( ioReactorConfig, ThreadFactories.namedThreadFactory(options.getThreadPrefix() + "-io", ThreadFactories.Type.DAEMON)); reactor.setExceptionHandler(new IOReactorExceptionHandler() throw new RuntimeException("Reactor " + options.getThreadPrefix() + "not set up correctly", e);
.setThreadFactory(ThreadFactories.namedThreadFactory(options.getThreadPrefix() + "-io", ThreadFactories.Type.DAEMON)) .setDefaultIOReactorConfig(reactorConfig) .setConnectionManager(connectionManager) throw new RuntimeException("Reactor " + options.getThreadPrefix() + "not set up correctly", e);