public class StompMessageHandler extends AbstractMessageHandler implements ApplicationEventPublisherAware, ManageableLifecycle
AbstractMessageHandler implementation to send messages to STOMP destinations.IntegrationManagement.ManagementOverridesEXPRESSION_PARSER, loggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCEMETER_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, onSubscribebuildSendTimer, destroy, getComponentType, getIntegrationPatternType, getManagedName, getManagedType, getMetricsCaptor, getOrder, getOverrides, isLoggingEnabled, registerMetricsCaptor, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrackafterPropertiesSet, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetThisAsgetBeanName, getComponentNamepublic 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 ApplicationEventPublisherAwareprotected void onInit()
IntegrationObjectSupportonInit in class IntegrationObjectSupportprotected void handleMessageInternal(Message<?> message)
handleMessageInternal in class AbstractMessageHandlerpublic void start()
start in interface Lifecyclestart in interface ManageableLifecyclepublic void stop()
stop in interface Lifecyclestop in interface ManageableLifecyclepublic boolean isRunning()
isRunning in interface LifecycleisRunning in interface ManageableLifecycle