public class SimpleBrokerRegistration extends AbstractBrokerRegistration
SimpleBrokerMessageHandler
.Constructor and Description |
---|
SimpleBrokerRegistration(SubscribableChannel inChannel,
MessageChannel outChannel,
java.lang.String[] prefixes) |
Modifier and Type | Method and Description |
---|---|
protected SimpleBrokerMessageHandler |
getMessageHandler(SubscribableChannel brokerChannel) |
SimpleBrokerRegistration |
setHeartbeatValue(long[] heartbeat)
Configure the value for the heartbeat settings.
|
void |
setSelectorHeaderName(java.lang.String selectorHeaderName)
Configure the name of a header that a subscription message can have for
the purpose of filtering messages matched to the subscription.
|
SimpleBrokerRegistration |
setTaskScheduler(TaskScheduler taskScheduler)
Configure the
TaskScheduler to
use for providing heartbeat support. |
getClientInboundChannel, getClientOutboundChannel, getDestinationPrefixes
public SimpleBrokerRegistration(SubscribableChannel inChannel, MessageChannel outChannel, java.lang.String[] prefixes)
public SimpleBrokerRegistration setTaskScheduler(TaskScheduler taskScheduler)
TaskScheduler
to
use for providing heartbeat support. Setting this property also sets the
heartbeatValue
to "10000, 10000".
By default this is not set.
public SimpleBrokerRegistration setHeartbeatValue(long[] heartbeat)
By default this is set to "0, 0" unless the taskScheduler
in which case the default becomes "10000,10000"
(in milliseconds).
public void setSelectorHeaderName(java.lang.String selectorHeaderName)
For example:
headers.foo == 'bar'
By default this is set to "selector". You can set it to a different
name, or to null
to turn off support for a selector header.
selectorHeaderName
- the name to use for a selector headerprotected SimpleBrokerMessageHandler getMessageHandler(SubscribableChannel brokerChannel)
getMessageHandler
in class AbstractBrokerRegistration