@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, lifecycleLock
EXPRESSION_PARSER, logger
DEFAULT_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()
Take no action by default.
|
protected void |
doStop()
Take 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, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, onInit, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisher
destroy, doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stop
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
getBeanName, getComponentName
public 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()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport
protected void doStart()
MessageProducerSupport
doStart
in class MessageProducerSupport
protected void doStop()
MessageProducerSupport
doStop
in class MessageProducerSupport