public class StompMessageHandler extends AbstractMessageHandler implements org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.Lifecycle
AbstractMessageHandler
implementation to send messages to STOMP destinations.IntegrationManagement.ManagementOverrides
EXPRESSION_PARSER, logger
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
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, getOverrides, getStandardDeviationDuration, handleMessage, isCountsEnabled, isLoggingEnabled, isStatsEnabled, onComplete, onError, onNext, onSubscribe, registerMetricsCaptor, reset, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, setStatsEnabled
afterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, 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
getComponentName
public 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.ApplicationEventPublisherAware
protected void onInit() throws java.lang.Exception
IntegrationObjectSupport
onInit
in class AbstractMessageHandler
java.lang.Exception
- Any exception.protected void handleMessageInternal(org.springframework.messaging.Message<?> message) throws java.lang.Exception
handleMessageInternal
in class AbstractMessageHandler
java.lang.Exception
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle