this.stats.incrementConnectCount(); Assert.state(this.tcpClient != null, "No TCP client available"); this.tcpClient.connect(handler); this.stats.incrementDisconnectCount(); handler.forward(message, stompAccessor);
this.stats.incrementConnectCount(); Assert.state(this.tcpClient != null, "No TCP client available"); this.tcpClient.connect(handler); this.stats.incrementDisconnectCount(); handler.forward(message, stompAccessor);
this.stats.incrementConnectCount(); Assert.state(this.tcpClient != null, "No TCP client available"); this.tcpClient.connect(handler); this.stats.incrementDisconnectCount(); handler.forward(message, stompAccessor);
@Override protected void startInternal() { if (this.tcpClient == null) { this.tcpClient = initTcpClient(); } if (logger.isInfoEnabled()) { logger.info("Starting \"system\" session, " + toString()); } StompHeaderAccessor accessor = StompHeaderAccessor.create(StompCommand.CONNECT); accessor.setAcceptVersion("1.1,1.2"); accessor.setLogin(this.systemLogin); accessor.setPasscode(this.systemPasscode); accessor.setHeartbeat(this.systemHeartbeatSendInterval, this.systemHeartbeatReceiveInterval); String virtualHost = getVirtualHost(); if (virtualHost != null) { accessor.setHost(virtualHost); } accessor.setSessionId(SYSTEM_SESSION_ID); if (logger.isDebugEnabled()) { logger.debug("Forwarding " + accessor.getShortLogMessage(EMPTY_PAYLOAD)); } SystemStompConnectionHandler handler = new SystemStompConnectionHandler(accessor); this.connectionHandlers.put(handler.getSessionId(), handler); this.stats.incrementConnectCount(); this.tcpClient.connect(handler, new FixedIntervalReconnectStrategy(5000)); }
@Override protected void startInternal() { if (this.tcpClient == null) { this.tcpClient = initTcpClient(); } if (logger.isInfoEnabled()) { logger.info("Starting \"system\" session, " + toString()); } StompHeaderAccessor accessor = StompHeaderAccessor.create(StompCommand.CONNECT); accessor.setAcceptVersion("1.1,1.2"); accessor.setLogin(this.systemLogin); accessor.setPasscode(this.systemPasscode); accessor.setHeartbeat(this.systemHeartbeatSendInterval, this.systemHeartbeatReceiveInterval); String virtualHost = getVirtualHost(); if (virtualHost != null) { accessor.setHost(virtualHost); } accessor.setSessionId(SYSTEM_SESSION_ID); if (logger.isDebugEnabled()) { logger.debug("Forwarding " + accessor.getShortLogMessage(EMPTY_PAYLOAD)); } SystemStompConnectionHandler handler = new SystemStompConnectionHandler(accessor); this.connectionHandlers.put(handler.getSessionId(), handler); this.stats.incrementConnectCount(); this.tcpClient.connect(handler, new FixedIntervalReconnectStrategy(5000)); }
/** * Invoked after the STOMP CONNECTED frame is received. At this point the * connection is ready for sending STOMP messages to the broker. */ protected void afterStompConnected(StompHeaderAccessor connectedHeaders) { this.isStompConnected = true; stats.incrementConnectedCount(); initHeartbeats(connectedHeaders); }
/** * Return a String describing internal state and counters. */ public String getStatsInfo() { return this.stats.toString(); }
/** * Invoked after the STOMP CONNECTED frame is received. At this point the * connection is ready for sending STOMP messages to the broker. */ protected void afterStompConnected(StompHeaderAccessor connectedHeaders) { this.isStompConnected = true; stats.incrementConnectedCount(); initHeartbeats(connectedHeaders); }
/** * Return a String describing internal state and counters. */ public String getStatsInfo() { return this.stats.toString(); }
this.stats.incrementConnectCount(); Assert.state(this.tcpClient != null, "No TCP client available"); this.tcpClient.connect(handler); this.stats.incrementDisconnectCount(); handler.forward(message, stompAccessor);
@Override protected void startInternal() { if (this.tcpClient == null) { this.tcpClient = initTcpClient(); } if (logger.isInfoEnabled()) { logger.info("Starting \"system\" session, " + toString()); } StompHeaderAccessor accessor = StompHeaderAccessor.create(StompCommand.CONNECT); accessor.setAcceptVersion("1.1,1.2"); accessor.setLogin(this.systemLogin); accessor.setPasscode(this.systemPasscode); accessor.setHeartbeat(this.systemHeartbeatSendInterval, this.systemHeartbeatReceiveInterval); String virtualHost = getVirtualHost(); if (virtualHost != null) { accessor.setHost(virtualHost); } accessor.setSessionId(SYSTEM_SESSION_ID); if (logger.isDebugEnabled()) { logger.debug("Forwarding " + accessor.getShortLogMessage(EMPTY_PAYLOAD)); } SystemStompConnectionHandler handler = new SystemStompConnectionHandler(accessor); this.connectionHandlers.put(handler.getSessionId(), handler); this.stats.incrementConnectCount(); this.tcpClient.connect(handler, new FixedIntervalReconnectStrategy(5000)); }
/** * Return a String describing internal state and counters. */ public String getStatsInfo() { return this.stats.toString(); }
/** * Invoked after the STOMP CONNECTED frame is received. At this point the * connection is ready for sending STOMP messages to the broker. */ protected void afterStompConnected(StompHeaderAccessor connectedHeaders) { this.isStompConnected = true; stats.incrementConnectedCount(); initHeartbeats(connectedHeaders); }
@Override protected void startInternal() { if (this.tcpClient == null) { this.tcpClient = initTcpClient(); } if (logger.isInfoEnabled()) { logger.info("Starting \"system\" session, " + toString()); } StompHeaderAccessor accessor = StompHeaderAccessor.create(StompCommand.CONNECT); accessor.setAcceptVersion("1.1,1.2"); accessor.setLogin(this.systemLogin); accessor.setPasscode(this.systemPasscode); accessor.setHeartbeat(this.systemHeartbeatSendInterval, this.systemHeartbeatReceiveInterval); String virtualHost = getVirtualHost(); if (virtualHost != null) { accessor.setHost(virtualHost); } accessor.setSessionId(SYSTEM_SESSION_ID); if (logger.isDebugEnabled()) { logger.debug("Forwarding " + accessor.getShortLogMessage(EMPTY_PAYLOAD)); } SystemStompConnectionHandler handler = new SystemStompConnectionHandler(accessor); this.connectionHandlers.put(handler.getSessionId(), handler); this.stats.incrementConnectCount(); this.tcpClient.connect(handler, new FixedIntervalReconnectStrategy(5000)); }
/** * Invoked after the STOMP CONNECTED frame is received. At this point the * connection is ready for sending STOMP messages to the broker. */ protected void afterStompConnected(StompHeaderAccessor connectedHeaders) { this.isStompConnected = true; stats.incrementConnectedCount(); initHeartbeats(connectedHeaders); }
/** * Return a String describing internal state and counters. */ public String getStatsInfo() { return this.stats.toString(); }