@Override public void shutdown() { executorService.stop(); }
@Override public void shutdown() { executorService.stop(); }
@Override public void destroy() { timer.stop(); } }
@Override public void destroy() { if (timer != null) { timer.stop(); } connections.values().forEach(ConnectionHolder::close); connections.clear(); }
@Override public void shutdownGracefully() { boss.shutdownGracefully().syncUninterruptibly(); worker.shutdownGracefully().syncUninterruptibly(); timer.stop(); if (processor != null) { processor.shutdown(); } }
@Override public void shutdownGracefully() { boss.shutdownGracefully().syncUninterruptibly(); worker.shutdownGracefully().syncUninterruptibly(); timer.stop(); if (processor != null) { processor.shutdown(); } }
@Override public void shutdownGracefully() { connectionManager.cancelAllAutoReconnect(); worker.shutdownGracefully().syncUninterruptibly(); timer.stop(); if (processor != null) { processor.shutdown(); } }
@Override public void shutdownGracefully() { connectionManager.cancelAllAutoReconnect(); worker.shutdownGracefully().syncUninterruptibly(); timer.stop(); if (processor != null) { processor.shutdown(); } }
resolverGroup.close(); timer.stop(); shutdownLatch.close(); shutdownPromise.trySuccess(true);
resolverGroup.close(); timer.stop(); shutdownLatch.close(); shutdownPromise.trySuccess(true);
@Override public void destroy() { if (timer != null) { timer.stop(); } connections.values().forEach(ConnectionHolder::close); connections.clear(); }
/** * Stop the ping manager. This method stops the hashed wheel timer and clears the map. * It may be called on (a) service stop, or (b) when the process gets disconnected from cluster. * If this object receives a ping in stopped state, it will send DISCONNECTED status. */ @Override protected void doStop() { hashedWheelTimer.stop(); map.clear(); notifyStopped(); }
public void stop() { started.set(false); hashedWheelSipTimer.stop(); logger.logStackTrace(StackLogger.TRACE_DEBUG); if(logger.isLoggingEnabled(StackLogger.TRACE_INFO)) { logger.logInfo("the sip stack timer " + this.getClass().getName() + " has been stopped"); } }
@Override public void shutdownGracefully() { boss.shutdownGracefully().syncUninterruptibly(); worker.shutdownGracefully().syncUninterruptibly(); timer.stop(); if (processor != null) { processor.shutdown(); } }
@Override public void stop(final BundleContext context) { LOG.info("Shutting down netconf because YangStoreService service was removed"); commitNot.close(); eventLoopGroup.shutdownGracefully(0, 1, TimeUnit.SECONDS); timer.stop(); regMonitoring.unregister(); factoriesTracker.close(); } }
@Override public void shutdownGracefully() { boss.shutdownGracefully().syncUninterruptibly(); worker.shutdownGracefully().syncUninterruptibly(); timer.stop(); if (processor != null) { processor.shutdown(); } }
/** Shutdown/stop any shared resources that may be in use. */ public static void releaseSharedResources() { sharedExecutor().shutdown(); sharedEventLoop().shutdownGracefully(); sharedWheelTimer().stop(); }
@Override public void shutdownGracefully() { connectionManager.cancelAllAutoReconnect(); worker.shutdownGracefully().syncUninterruptibly(); timer.stop(); if (processor != null) { processor.shutdown(); } }
/** * Shutdown/stop any shared resources that me be in use, blocking until finished or interrupted. * * @param timeout the duration to wait. * @param unit the {@link TimeUnit} of the {@code timeout} duration. */ public static void releaseSharedResources(long timeout, TimeUnit unit) throws InterruptedException { sharedExecutor().awaitTermination(timeout, unit); sharedEventLoop().shutdownGracefully().await(timeout, unit); sharedWheelTimer().stop(); }
@Override public void close() { shutdownExecutor(writeThreadPool); shutdownExecutor(readThreadPool); if (serverCfg.getNumLongPollWorkerThreads() > 0 || readThreadPool == null) { shutdownExecutor(longPollThreadPool); } shutdownExecutor(highPriorityThreadPool); requestTimer.stop(); }