public class MessageBrokerConfigurer extends Object
Constructor and Description |
---|
MessageBrokerConfigurer(MessageChannel webSocketResponseChannel) |
Modifier and Type | Method and Description |
---|---|
SimpleBrokerRegistration |
enableSimpleBroker(String... destinationPrefixes)
Enable a simple message broker and configure one or more prefixes to filter
destinations targeting the broker (e.g.
|
StompBrokerRelayRegistration |
enableStompBrokerRelay(String... destinationPrefixes)
Enable a STOMP broker relay and configure the destination prefixes supported by the
message broker.
|
protected Collection<String> |
getAnnotationMethodDestinationPrefixes() |
protected AbstractBrokerMessageHandler |
getSimpleBroker() |
protected AbstractBrokerMessageHandler |
getStompBrokerRelay() |
protected void |
initSimpleBrokerIfNecessary() |
MessageBrokerConfigurer |
setAnnotationMethodDestinationPrefixes(String... destinationPrefixes)
Configure one or more prefixes to filter destinations targeting annotated
application methods.
|
public MessageBrokerConfigurer(MessageChannel webSocketResponseChannel)
public SimpleBrokerRegistration enableSimpleBroker(String... destinationPrefixes)
public StompBrokerRelayRegistration enableStompBrokerRelay(String... destinationPrefixes)
public MessageBrokerConfigurer setAnnotationMethodDestinationPrefixes(String... destinationPrefixes)
When messages are processed, the matching prefix is removed from the destination in order to form the lookup path. This means annotations should not contain the destination prefix.
Prefixes that do not have a trailing slash will have one automatically appended.
protected AbstractBrokerMessageHandler getSimpleBroker()
protected void initSimpleBrokerIfNecessary()
protected AbstractBrokerMessageHandler getStompBrokerRelay()
protected Collection<String> getAnnotationMethodDestinationPrefixes()