@Override public void afterConnectionClosed() { if (logger.isDebugEnabled()) { logger.debug("Connection closed in session id=" + this.sessionId); } if (!this.closing) { resetConnection(); handleFailure(new ConnectionLostException("Connection closed")); } }
@Override public void afterConnectionClosed() { if (logger.isDebugEnabled()) { logger.debug("Connection closed in session id=" + this.sessionId); } if (!this.closing) { resetConnection(); handleFailure(new ConnectionLostException("Connection closed")); } }
private void connectIfNecessary() throws InterruptedException { synchronized (this.connectSemaphore) { if (this.stompSession == null || !this.stompSessionManager.isConnected()) { this.stompSessionManager.disconnect(this.sessionHandler); this.stompSessionManager.connect(this.sessionHandler); if (!this.connectSemaphore.tryAcquire(this.connectTimeout, TimeUnit.MILLISECONDS) || this.stompSession == null) { if (this.transportError != null) { if (this.transportError instanceof ConnectionLostException) { throw (ConnectionLostException) this.transportError; } else { throw new ConnectionLostException(this.transportError.getMessage()); } } else { throw new ConnectionLostException("Failed to obtain StompSession during timeout: " + this.connectTimeout); } } } } }
@Override public void afterConnectionClosed() { if (logger.isDebugEnabled()) { logger.debug("Connection closed in session id=" + this.sessionId); } if (!this.closing) { resetConnection(); handleFailure(new ConnectionLostException("Connection closed")); } }
@Override public void afterConnectionClosed() { if (logger.isDebugEnabled()) { logger.debug("Connection closed in session id=" + this.sessionId); } if (!this.closing) { resetConnection(); handleFailure(new ConnectionLostException("Connection closed")); } }