Java Code Examples for org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandler#setAutoStartup()
The following examples show how to use
org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandler#setAutoStartup() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StompBrokerRelayRegistration.java From spring-analysis-note with MIT License | 5 votes |
protected StompBrokerRelayMessageHandler getMessageHandler(SubscribableChannel brokerChannel) { StompBrokerRelayMessageHandler handler = new StompBrokerRelayMessageHandler( getClientInboundChannel(), getClientOutboundChannel(), brokerChannel, getDestinationPrefixes()); handler.setRelayHost(this.relayHost); handler.setRelayPort(this.relayPort); handler.setClientLogin(this.clientLogin); handler.setClientPasscode(this.clientPasscode); handler.setSystemLogin(this.systemLogin); handler.setSystemPasscode(this.systemPasscode); if (this.systemHeartbeatSendInterval != null) { handler.setSystemHeartbeatSendInterval(this.systemHeartbeatSendInterval); } if (this.systemHeartbeatReceiveInterval != null) { handler.setSystemHeartbeatReceiveInterval(this.systemHeartbeatReceiveInterval); } if (this.virtualHost != null) { handler.setVirtualHost(this.virtualHost); } if (this.tcpClient != null) { handler.setTcpClient(this.tcpClient); } handler.setAutoStartup(this.autoStartup); return handler; }
Example 2
Source File: StompBrokerRelayRegistration.java From java-technology-stack with MIT License | 5 votes |
protected StompBrokerRelayMessageHandler getMessageHandler(SubscribableChannel brokerChannel) { StompBrokerRelayMessageHandler handler = new StompBrokerRelayMessageHandler( getClientInboundChannel(), getClientOutboundChannel(), brokerChannel, getDestinationPrefixes()); handler.setRelayHost(this.relayHost); handler.setRelayPort(this.relayPort); handler.setClientLogin(this.clientLogin); handler.setClientPasscode(this.clientPasscode); handler.setSystemLogin(this.systemLogin); handler.setSystemPasscode(this.systemPasscode); if (this.systemHeartbeatSendInterval != null) { handler.setSystemHeartbeatSendInterval(this.systemHeartbeatSendInterval); } if (this.systemHeartbeatReceiveInterval != null) { handler.setSystemHeartbeatReceiveInterval(this.systemHeartbeatReceiveInterval); } if (this.virtualHost != null) { handler.setVirtualHost(this.virtualHost); } if (this.tcpClient != null) { handler.setTcpClient(this.tcpClient); } handler.setAutoStartup(this.autoStartup); return handler; }
Example 3
Source File: StompBrokerRelayRegistration.java From spring4-understanding with Apache License 2.0 | 5 votes |
protected StompBrokerRelayMessageHandler getMessageHandler(SubscribableChannel brokerChannel) { StompBrokerRelayMessageHandler handler = new StompBrokerRelayMessageHandler( getClientInboundChannel(), getClientOutboundChannel(), brokerChannel, getDestinationPrefixes()); handler.setRelayHost(this.relayHost); handler.setRelayPort(this.relayPort); handler.setClientLogin(this.clientLogin); handler.setClientPasscode(this.clientPasscode); handler.setSystemLogin(this.systemLogin); handler.setSystemPasscode(this.systemPasscode); if (this.systemHeartbeatSendInterval != null) { handler.setSystemHeartbeatSendInterval(this.systemHeartbeatSendInterval); } if (this.systemHeartbeatReceiveInterval != null) { handler.setSystemHeartbeatReceiveInterval(this.systemHeartbeatReceiveInterval); } if (this.virtualHost != null) { handler.setVirtualHost(this.virtualHost); } handler.setAutoStartup(this.autoStartup); return handler; }