类的使用
org.apache.pulsar.common.util.GracefulExecutorServicesShutdown
-
org.apache.pulsar.common.util中GracefulExecutorServicesShutdown的使用
修饰符和类型方法说明GracefulExecutorServicesShutdown.initiate()Initiates a new shutdown for one or manyExecutorServices.GracefulExecutorServicesShutdown.shutdown(ExecutorService... executorServices) CallsExecutorService.shutdown()and enlists the executor as part of the shutdown handling.GracefulExecutorServicesShutdown.terminationTimeout(Duration terminationTimeout) Sets the timeout for waiting for executors to complete in forceful termination.Sets the timeout for graceful shutdown.