@ManagedResource @IntegrationManagedResource public class StompInboundChannelAdapter extends MessageProducerSupport implements ApplicationEventPublisherAware
MessageProducerSupport for STOMP protocol to handle STOMP frames from
provided destination and send messages to the outputChannel.
Destinations can be added and removed at runtime.
The StompReceiptEvent is emitted for each Subscribe STOMP frame
if provided StompSessionManager supports autoReceiptEnabled.
lifecycleCondition, lifecycleLockEXPRESSION_PARSER, loggerDEFAULT_PHASE| Constructor and Description |
|---|
StompInboundChannelAdapter(StompSessionManager stompSessionManager,
String... destinations) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDestination(String... destination)
Add a destination (or destinations) to the subscribed list and subscribe it.
|
protected void |
doStart()
Takes no action by default.
|
protected void |
doStop()
Takes no action by default.
|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
String[] |
getDestinations() |
void |
removeDestination(String... destination)
Remove a destination (or destinations) from the subscribed list and unsubscribe it.
|
void |
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) |
void |
setHeaderMapper(HeaderMapper<StompHeaders> headerMapper) |
void |
setPayloadType(Class<?> payloadType) |
afterSingletonsInstantiated, buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getMessagingTemplate, getOutputChannel, onInit, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrackdestroy, doStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stopafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, 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, waitgetBeanName, getComponentNamepublic StompInboundChannelAdapter(StompSessionManager stompSessionManager, String... destinations)
public void setPayloadType(Class<?> payloadType)
public void setHeaderMapper(HeaderMapper<StompHeaders> headerMapper)
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface ApplicationEventPublisherAware@ManagedAttribute public String[] getDestinations()
@ManagedOperation public void addDestination(String... destination)
destination - The destinations.@ManagedOperation public void removeDestination(String... destination)
destination - The destinations.public String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportprotected void doStart()
MessageProducerSupportdoStart in class MessageProducerSupportprotected void doStop()
MessageProducerSupportdoStop in class MessageProducerSupport