public class TcpConnectionEventListeningMessageProducer extends MessageProducerSupport implements org.springframework.context.ApplicationListener<TcpConnectionEvent>
MessageProducer
that produces Messages with @link TcpConnectionEvent
payloads.logger
Constructor and Description |
---|
TcpConnectionEventListeningMessageProducer() |
Modifier and Type | Method and Description |
---|---|
protected Message<TcpConnectionEvent> |
messageFromEvent(TcpConnectionEvent event) |
void |
onApplicationEvent(TcpConnectionEvent event) |
void |
setEventTypes(java.lang.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, getComponentType, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName, getComponentType
public TcpConnectionEventListeningMessageProducer()
public void setEventTypes(java.lang.Class<? extends TcpConnectionEvent>[] eventTypes)
public void onApplicationEvent(TcpConnectionEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<TcpConnectionEvent>
protected Message<TcpConnectionEvent> messageFromEvent(TcpConnectionEvent event)