public class FileTailInboundChannelAdapterFactoryBean extends AbstractFactoryBean<FileTailingMessageProducerSupport> implements BeanNameAware, SmartLifecycle, ApplicationEventPublisherAware
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
FileTailInboundChannelAdapterFactoryBean() |
Modifier and Type | Method and Description |
---|---|
protected FileTailingMessageProducerSupport |
createInstance() |
Class<?> |
getObjectType() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) |
void |
setAutoStartup(boolean autoStartup) |
void |
setBeanName(String name) |
void |
setDelay(Long delay) |
void |
setEnableStatusReader(boolean enableStatusReader)
If false, thread for capturing stderr will not be started
and stderr output will be ignored
|
void |
setEnd(Boolean end) |
void |
setErrorChannel(MessageChannel errorChannel) |
void |
setErrorChannelName(String errorChannelName) |
void |
setFile(File file) |
void |
setFileDelay(Long fileDelay) |
void |
setIdleEventInterval(long idleEventInterval)
How often to emit
FileTailingMessageProducerSupport.FileTailingIdleEvent s in milliseconds. |
void |
setNativeOptions(String nativeOptions) |
void |
setOutputChannel(MessageChannel outputChannel) |
void |
setOutputChannelName(String outputChannelName) |
void |
setPhase(int phase) |
void |
setReopen(Boolean reopen) |
void |
setTaskExecutor(TaskExecutor taskExecutor) |
void |
setTaskScheduler(TaskScheduler taskScheduler) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
public FileTailInboundChannelAdapterFactoryBean()
public void setNativeOptions(String nativeOptions)
public void setEnableStatusReader(boolean enableStatusReader)
enableStatusReader
- true or falsepublic void setIdleEventInterval(long idleEventInterval)
FileTailingMessageProducerSupport.FileTailingIdleEvent
s in milliseconds.idleEventInterval
- the interval.public void setFile(File file)
public void setTaskExecutor(TaskExecutor taskExecutor)
public void setTaskScheduler(TaskScheduler taskScheduler)
public void setDelay(Long delay)
public void setFileDelay(Long fileDelay)
public void setEnd(Boolean end)
public void setReopen(Boolean reopen)
public void setBeanName(String name)
setBeanName
in interface BeanNameAware
public void setOutputChannel(MessageChannel outputChannel)
public void setOutputChannelName(String outputChannelName)
public void setErrorChannel(MessageChannel errorChannel)
public void setErrorChannelName(String errorChannelName)
public void setAutoStartup(boolean autoStartup)
public void setPhase(int phase)
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface ApplicationEventPublisherAware
public int getPhase()
getPhase
in interface Phased
getPhase
in interface SmartLifecycle
public boolean isAutoStartup()
isAutoStartup
in interface SmartLifecycle
public void stop(Runnable callback)
stop
in interface SmartLifecycle
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<FileTailingMessageProducerSupport>
getObjectType
in class AbstractFactoryBean<FileTailingMessageProducerSupport>
protected FileTailingMessageProducerSupport createInstance()
createInstance
in class AbstractFactoryBean<FileTailingMessageProducerSupport>