protected void doStop() { if (this.requestUpgradeStrategy instanceof Lifecycle) { ((Lifecycle) this.requestUpgradeStrategy).stop(); } }
@Override public void stop() { if (isRunning()) { this.running = false; if (this.handshakeHandler instanceof Lifecycle) { ((Lifecycle) this.handshakeHandler).stop(); } } }
@Override public void stop() { if (isRunning()) { this.running = false; if (this.handshakeHandler instanceof Lifecycle) { ((Lifecycle) this.handshakeHandler).stop(); } } }
@Override public void stop() { if (isRunning()) { if (this.webSocketClient instanceof Lifecycle) { ((Lifecycle) this.webSocketClient).stop(); } else { this.running = false; } } }
@Override public void stop() { if (isRunning()) { this.running = false; for (TransportHandler handler : this.handlers.values()) { if (handler instanceof Lifecycle) { ((Lifecycle) handler).stop(); } } } }
@Override public void stop() { if (isRunning()) { this.running = false; if (this.sockJsService instanceof Lifecycle) { ((Lifecycle) this.sockJsService).stop(); } } }
@Override public void stop() { if (isRunning()) { this.running = false; for (Object handler : getUrlMap().values()) { if (handler instanceof Lifecycle) { ((Lifecycle) handler).stop(); } } } }
protected void doStop() { if (getUpgradeStrategy() instanceof Lifecycle) { ((Lifecycle) getUpgradeStrategy()).stop(); } }
@Override public void stopInternal() throws Exception { if (this.client instanceof Lifecycle && ((Lifecycle) this.client).isRunning()) { ((Lifecycle) this.client).stop(); } super.stopInternal(); }
@Override public void stop() { if (isRunning()) { this.running = false; for (Transport transport : this.transports) { if (transport instanceof Lifecycle) { Lifecycle lifecycle = (Lifecycle) transport; if (lifecycle.isRunning()) { lifecycle.stop(); } } } } }
@Override public void stop() { if (isRunning()) { this.running = false; if (getWebSocketClient() instanceof Lifecycle) { ((Lifecycle) getWebSocketClient()).stop(); } } }
bean.getClass().getName() + "]"); bean.stop(); if (logger.isDebugEnabled()) { logger.debug("Successfully stopped bean '" + beanName + "'");
bean.getClass().getName() + "]"); bean.stop(); if (logger.isDebugEnabled()) { logger.debug("Successfully stopped bean '" + beanName + "'");
@After public void stop() { if (this.client instanceof Lifecycle) { ((Lifecycle) this.client).stop(); } this.server.stop(); }
private void waitForResults(Lifecycle lifecycle, int count, int maxTries) throws InterruptedException { lifecycle.start(); int timeout = 0; while (processed.size() < count && timeout++ < maxTries) { Thread.sleep(10); } lifecycle.stop(); }
private void waitForResults(Lifecycle lifecycle, int count, int maxTries) throws InterruptedException { lifecycle.start(); int timeout = 0; while (processed.size() < count && timeout++ < maxTries) { Thread.sleep(5); } lifecycle.stop(); }
private void waitForResults(Lifecycle lifecycle, int count, int maxTries) throws InterruptedException { lifecycle.start(); int timeout = 0; while (service.getProcessed().size() < count && timeout++ < maxTries) { Thread.sleep(5); } lifecycle.stop(); }
@After public void teardown() throws Exception { try { if (this.webSocketClient instanceof Lifecycle) { ((Lifecycle) this.webSocketClient).stop(); } } catch (Throwable t) { logger.error("Failed to stop WebSocket client", t); } try { this.server.undeployConfig(); } catch (Throwable t) { logger.error("Failed to undeploy application config", t); } try { this.server.stop(); } catch (Throwable t) { logger.error("Failed to stop server", t); } try { this.wac.close(); } catch (Throwable t) { logger.error("Failed to close WebApplicationContext", t); } }
private void waitForResults(Lifecycle lifecycle, int count, int maxTries) throws InterruptedException { lifecycle.start(); int timeout = 0; while (service.getProcessed().size() < count && timeout++ < maxTries) { Thread.sleep(10); } lifecycle.stop(); }
@After public void stop() throws Exception { if (this.client instanceof Lifecycle) { ((Lifecycle) this.client).stop(); } this.server.stop(); if (this.gatewayContext != null) { this.gatewayContext.stop(); } }