public class TcpConnectionEventListeningMessageProducer extends MessageProducerSupport implements ApplicationListener<TcpConnectionEvent>
MessageProducer
that produces Messages with @link TcpConnectionEvent
payloads.logger
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, onInit, sendMessage, setErrorChannel, setOutputChannel, setSendTimeout, setShouldTrack
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName
public TcpConnectionEventListeningMessageProducer()
public void setEventTypes(Class<? extends TcpConnectionEvent>[] eventTypes)
eventTypes
- The event types.public String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport
public void onApplicationEvent(TcpConnectionEvent event)
onApplicationEvent
in interface ApplicationListener<TcpConnectionEvent>
protected Message<TcpConnectionEvent> messageFromEvent(TcpConnectionEvent event)