public class StompMessageHandler extends AbstractMessageHandler implements ApplicationEventPublisherAware, ManageableLifecycle
AbstractMessageHandler
implementation to send messages to STOMP destinations.IntegrationManagement.ManagementOverrides
EXPRESSION_PARSER, logger
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
Constructor and Description |
---|
StompMessageHandler(StompSessionManager stompSessionManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleMessageInternal(Message<?> message) |
boolean |
isRunning() |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) |
void |
setConnectTimeout(long connectTimeout)
Specify the the timeout in milliseconds to wait for the STOMP session establishment.
|
void |
setDestination(String destination) |
void |
setDestinationExpression(Expression destinationExpression) |
void |
setHeaderMapper(HeaderMapper<StompHeaders> headerMapper) |
void |
setIntegrationEvaluationContext(EvaluationContext evaluationContext) |
void |
start() |
void |
stop() |
handleMessage, onComplete, onError, onNext, onSubscribe
buildSendTimer, destroy, getComponentType, getIntegrationPatternType, getManagedName, getManagedType, getMetricsCaptor, getOrder, getOverrides, isLoggingEnabled, registerMetricsCaptor, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrack
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getThisAs
getBeanName, getComponentName
public StompMessageHandler(StompSessionManager stompSessionManager)
public void setDestination(String destination)
public void setDestinationExpression(Expression destinationExpression)
public void setHeaderMapper(HeaderMapper<StompHeaders> headerMapper)
public void setConnectTimeout(long connectTimeout)
AbstractStompSessionManager.setRecoveryInterval(int)
.connectTimeout
- the timeout to use.public void setIntegrationEvaluationContext(EvaluationContext evaluationContext)
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface ApplicationEventPublisherAware
protected void onInit()
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
protected void handleMessageInternal(Message<?> message)
handleMessageInternal
in class AbstractMessageHandler
public void start()
start
in interface Lifecycle
start
in interface ManageableLifecycle
public void stop()
stop
in interface Lifecycle
stop
in interface ManageableLifecycle
public boolean isRunning()
isRunning
in interface Lifecycle
isRunning
in interface ManageableLifecycle