@ManagedResource @IntegrationManagedResource public class StompInboundChannelAdapter extends MessageProducerSupport implements org.springframework.context.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, logger| Constructor and Description |
|---|
StompInboundChannelAdapter(StompSessionManager stompSessionManager,
java.lang.String... destinations) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDestination(java.lang.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.
|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
java.lang.String[] |
getDestinations() |
void |
removeDestination(java.lang.String... destination)
Remove a destination (or destinations) from the subscribed list and unsubscribe it.
|
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
void |
setHeaderMapper(HeaderMapper<org.springframework.messaging.simp.stomp.StompHeaders> headerMapper) |
void |
setPayloadType(java.lang.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, setTaskScheduler, start, stop, stopafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic StompInboundChannelAdapter(StompSessionManager stompSessionManager, java.lang.String... destinations)
public void setPayloadType(java.lang.Class<?> payloadType)
public void setHeaderMapper(HeaderMapper<org.springframework.messaging.simp.stomp.StompHeaders> headerMapper)
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware@ManagedAttribute public java.lang.String[] getDestinations()
@ManagedOperation public void addDestination(java.lang.String... destination)
destination - The destinations.@ManagedOperation public void removeDestination(java.lang.String... destination)
destination - The destinations.public java.lang.String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportprotected void doStart()
MessageProducerSupportdoStart in class MessageProducerSupportprotected void doStop()
MessageProducerSupportdoStop in class MessageProducerSupport