public class SyslogReceivingChannelAdapterFactoryBean extends AbstractFactoryBean<SyslogReceivingChannelAdapterSupport> implements SmartLifecycle, BeanNameAware, ApplicationEventPublisherAware
Modifier and Type | Class and Description |
---|---|
static class |
SyslogReceivingChannelAdapterFactoryBean.Protocol |
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
SyslogReceivingChannelAdapterFactoryBean(SyslogReceivingChannelAdapterFactoryBean.Protocol protocol)
Instantiates a factory bean that creates a
UdpSyslogReceivingChannelAdapter
if the protocol is SyslogReceivingChannelAdapterFactoryBean.Protocol.udp or a TcpSyslogReceivingChannelAdapter if
the protocol is SyslogReceivingChannelAdapterFactoryBean.Protocol.tcp . |
Modifier and Type | Method and Description |
---|---|
protected SyslogReceivingChannelAdapterSupport |
createInstance() |
Class<?> |
getObjectType() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) |
void |
setAutoStartup(boolean autoStartup) |
void |
setBeanName(String name) |
void |
setConnectionFactory(AbstractServerConnectionFactory connectionFactory) |
void |
setConverter(MessageConverter converter) |
void |
setErrorChannel(MessageChannel errorChannel) |
void |
setOutputChannel(MessageChannel outputChannel) |
void |
setPhase(int phase) |
void |
setPort(int port) |
void |
setSendTimeout(long sendTimeout) |
void |
setUdpAdapter(UnicastReceivingChannelAdapter udpAdapter) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
public SyslogReceivingChannelAdapterFactoryBean(SyslogReceivingChannelAdapterFactoryBean.Protocol protocol)
UdpSyslogReceivingChannelAdapter
if the protocol is SyslogReceivingChannelAdapterFactoryBean.Protocol.udp
or a TcpSyslogReceivingChannelAdapter
if
the protocol is SyslogReceivingChannelAdapterFactoryBean.Protocol.tcp
.protocol
- The protocol.public void setOutputChannel(MessageChannel outputChannel)
public void setAutoStartup(boolean autoStartup)
public void setErrorChannel(MessageChannel errorChannel)
public void setPhase(int phase)
public void setSendTimeout(long sendTimeout)
public void setConnectionFactory(AbstractServerConnectionFactory connectionFactory)
public void setUdpAdapter(UnicastReceivingChannelAdapter udpAdapter)
public void setPort(int port)
public void setConverter(MessageConverter converter)
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface ApplicationEventPublisherAware
public int getPhase()
getPhase
in interface Phased
getPhase
in interface SmartLifecycle
public void setBeanName(String name)
setBeanName
in interface BeanNameAware
public boolean isAutoStartup()
isAutoStartup
in interface SmartLifecycle
public void stop(Runnable callback)
stop
in interface SmartLifecycle
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<SyslogReceivingChannelAdapterSupport>
getObjectType
in class AbstractFactoryBean<SyslogReceivingChannelAdapterSupport>
protected SyslogReceivingChannelAdapterSupport createInstance()
createInstance
in class AbstractFactoryBean<SyslogReceivingChannelAdapterSupport>