public class StompBrokerRelayRegistration extends AbstractBrokerRegistration
StompBrokerRelayMessageHandler
.Constructor and Description |
---|
StompBrokerRelayRegistration(SubscribableChannel clientInboundChannel,
MessageChannel clientOutboundChannel,
String[] destinationPrefixes) |
Modifier and Type | Method and Description |
---|---|
protected StompBrokerRelayMessageHandler |
getMessageHandler(SubscribableChannel brokerChannel) |
StompBrokerRelayRegistration |
setApplicationLogin(String login)
Set the login for the "system" relay session used to send messages to the STOMP
broker without having a client session (e.g.
|
StompBrokerRelayRegistration |
setApplicationPasscode(String passcode)
Set the passcode for the "system" relay session used to send messages to the STOMP
broker without having a client session (e.g.
|
StompBrokerRelayRegistration |
setAutoStartup(boolean autoStartup)
Configure whether the
StompBrokerRelayMessageHandler should start
automatically when the Spring ApplicationContext is refreshed. |
StompBrokerRelayRegistration |
setRelayHost(String relayHost)
Set the STOMP message broker host.
|
StompBrokerRelayRegistration |
setRelayPort(int relayPort)
Set the STOMP message broker port.
|
StompBrokerRelayRegistration |
setSystemHeartbeatReceiveInterval(long heartbeatReceiveInterval)
Set the maximum interval, in milliseconds, at which the "system" relay session
expects, in the absence of any other data, to receive a heartbeat from the STOMP
broker.
|
StompBrokerRelayRegistration |
setSystemHeartbeatSendInterval(long systemHeartbeatSendInterval)
Set the interval, in milliseconds, at which the "system" relay session will,
in the absence of any other data being sent, send a heartbeat to the STOMP broker.
|
getClientInboundChannel, getClientOutboundChannel, getDestinationPrefixes
public StompBrokerRelayRegistration(SubscribableChannel clientInboundChannel, MessageChannel clientOutboundChannel, String[] destinationPrefixes)
public StompBrokerRelayRegistration setRelayHost(String relayHost)
public StompBrokerRelayRegistration setRelayPort(int relayPort)
public StompBrokerRelayRegistration setApplicationLogin(String login)
public StompBrokerRelayRegistration setApplicationPasscode(String passcode)
public StompBrokerRelayRegistration setSystemHeartbeatSendInterval(long systemHeartbeatSendInterval)
The default value is 10000.
public StompBrokerRelayRegistration setSystemHeartbeatReceiveInterval(long heartbeatReceiveInterval)
The default value is 10000.
public StompBrokerRelayRegistration setAutoStartup(boolean autoStartup)
StompBrokerRelayMessageHandler
should start
automatically when the Spring ApplicationContext is refreshed.
The default setting is true
.
protected StompBrokerRelayMessageHandler getMessageHandler(SubscribableChannel brokerChannel)
getMessageHandler
in class AbstractBrokerRegistration