public class StompMessageHandler extends AbstractMessageHandler implements org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.Lifecycle
AbstractMessageHandler implementation to send messages to STOMP destinations.EXPRESSION_PARSER, logger| Constructor and Description |
|---|
StompMessageHandler(StompSessionManager stompSessionManager) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleMessageInternal(org.springframework.messaging.Message<?> message) |
boolean |
isRunning() |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
void |
setConnectTimeout(long connectTimeout)
Specify the the timeout in milliseconds to wait for the STOMP session establishment.
|
void |
setDestination(java.lang.String destination) |
void |
setDestinationExpression(org.springframework.expression.Expression destinationExpression) |
void |
setHeaderMapper(HeaderMapper<org.springframework.messaging.simp.stomp.StompHeaders> headerMapper) |
void |
setIntegrationEvaluationContext(org.springframework.expression.EvaluationContext evaluationContext) |
void |
start() |
void |
stop() |
configureMetrics, getActiveCount, getActiveCountLong, getComponentType, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMinDuration, getOrder, getStandardDeviationDuration, handleMessage, isCountsEnabled, isLoggingEnabled, isStatsEnabled, reset, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, setStatsEnabledafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic StompMessageHandler(StompSessionManager stompSessionManager)
public void setDestination(java.lang.String destination)
public void setDestinationExpression(org.springframework.expression.Expression destinationExpression)
public void setHeaderMapper(HeaderMapper<org.springframework.messaging.simp.stomp.StompHeaders> headerMapper)
public void setConnectTimeout(long connectTimeout)
AbstractStompSessionManager.setRecoveryInterval(int).connectTimeout - the timeout to use.public void setIntegrationEvaluationContext(org.springframework.expression.EvaluationContext evaluationContext)
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwareprotected void onInit()
throws java.lang.Exception
IntegrationObjectSupportonInit in class AbstractMessageHandlerjava.lang.Exception - Any exception.protected void handleMessageInternal(org.springframework.messaging.Message<?> message)
throws java.lang.Exception
handleMessageInternal in class AbstractMessageHandlerjava.lang.Exceptionpublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecycle