public class TcpConnectionEventListeningMessageProducer extends MessageProducerSupport implements ApplicationListener<TcpConnectionEvent>
MessageProducer that produces Messages with @link TcpConnectionEvent
payloads.lifecycleCondition, lifecycleLocklogger| Constructor and Description |
|---|
TcpConnectionEventListeningMessageProducer() |
| Modifier and Type | Method and Description |
|---|---|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected Message<TcpConnectionEvent> |
messageFromEvent(TcpConnectionEvent event) |
void |
onApplicationEvent(TcpConnectionEvent event) |
void |
setEventTypes(Class<? extends TcpConnectionEvent>[] eventTypes)
Set the list of event types (classes that extend TcpConnectionEvent) that
this adapter should send to the message channel.
|
doStart, doStop, getMessagingTemplate, onInit, sendMessage, setErrorChannel, setOutputChannel, setSendTimeout, setShouldTrackdoStop, getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stopafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic TcpConnectionEventListeningMessageProducer()
public void setEventTypes(Class<? extends TcpConnectionEvent>[] eventTypes)
eventTypes - The event types.public String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportpublic void onApplicationEvent(TcpConnectionEvent event)
onApplicationEvent in interface ApplicationListener<TcpConnectionEvent>protected Message<TcpConnectionEvent> messageFromEvent(TcpConnectionEvent event)