public class FileTailInboundChannelAdapterFactoryBean extends AbstractFactoryBean<FileTailingMessageProducerSupport> implements BeanNameAware, SmartLifecycle, ApplicationEventPublisherAware
loggerDEFAULT_PHASEOBJECT_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.FileTailingIdleEvents 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, setSingletonpublic FileTailInboundChannelAdapterFactoryBean()
public void setNativeOptions(String nativeOptions)
public void setEnableStatusReader(boolean enableStatusReader)
enableStatusReader - true or falsepublic void setIdleEventInterval(long idleEventInterval)
FileTailingMessageProducerSupport.FileTailingIdleEvents 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 BeanNameAwarepublic 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 ApplicationEventPublisherAwarepublic int getPhase()
getPhase in interface PhasedgetPhase in interface SmartLifecyclepublic boolean isAutoStartup()
isAutoStartup in interface SmartLifecyclepublic void stop(Runnable callback)
stop in interface SmartLifecyclepublic Class<?> getObjectType()
getObjectType in interface FactoryBean<FileTailingMessageProducerSupport>getObjectType in class AbstractFactoryBean<FileTailingMessageProducerSupport>protected FileTailingMessageProducerSupport createInstance()
createInstance in class AbstractFactoryBean<FileTailingMessageProducerSupport>