Class FileTailInboundChannelAdapterFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<FileTailingMessageProducerSupport>
org.springframework.integration.file.config.FileTailInboundChannelAdapterFactoryBean
- All Implemented Interfaces:
- Aware,- BeanClassLoaderAware,- BeanFactoryAware,- BeanNameAware,- DisposableBean,- FactoryBean<FileTailingMessageProducerSupport>,- InitializingBean,- ApplicationEventPublisherAware,- Lifecycle,- Phased,- SmartLifecycle
public class FileTailInboundChannelAdapterFactoryBean
extends AbstractFactoryBean<FileTailingMessageProducerSupport>
implements BeanNameAware, SmartLifecycle, ApplicationEventPublisherAware
- Since:
- 3.0
- Author:
- Gary Russell, Artem Bilan, Ali Shahbour
- 
Field SummaryFields inherited from class org.springframework.beans.factory.config.AbstractFactoryBeanloggerFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected FileTailingMessageProducerSupportClass<?>intgetPhase()booleanbooleanvoidsetApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) voidsetAutoStartup(boolean autoStartup) voidsetBeanName(String name) voidvoidsetEnableStatusReader(boolean enableStatusReader) If false, thread for capturing stderr will not be started and stderr output will be ignored.voidvoidsetErrorChannel(MessageChannel errorChannel) voidsetErrorChannelName(String errorChannelName) voidsetErrorMessageStrategy(ErrorMessageStrategy errorMessageStrategy) voidvoidsetFileDelay(Long fileDelay) voidsetIdleEventInterval(long idleEventInterval) How often to emitFileTailingMessageProducerSupport.FileTailingIdleEvents in milliseconds.voidsetNativeOptions(String nativeOptions) voidsetOutputChannel(MessageChannel outputChannel) voidsetOutputChannelName(String outputChannelName) voidsetPhase(int phase) voidvoidsetSendTimeout(long sendTimeout) voidsetShouldTrack(boolean shouldTrack) voidsetTaskExecutor(TaskExecutor taskExecutor) voidsetTaskScheduler(TaskScheduler taskScheduler) voidstart()voidstop()voidMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBeanafterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
- 
Constructor Details- 
FileTailInboundChannelAdapterFactoryBeanpublic FileTailInboundChannelAdapterFactoryBean()
 
- 
- 
Method Details- 
setNativeOptions
- 
setEnableStatusReaderpublic void setEnableStatusReader(boolean enableStatusReader) If false, thread for capturing stderr will not be started and stderr output will be ignored.- Parameters:
- enableStatusReader- true or false
- Since:
- 4.3.6
 
- 
setIdleEventIntervalpublic void setIdleEventInterval(long idleEventInterval) How often to emitFileTailingMessageProducerSupport.FileTailingIdleEvents in milliseconds.- Parameters:
- idleEventInterval- the interval.
- Since:
- 5.0
 
- 
setFile
- 
setTaskExecutor
- 
setTaskScheduler
- 
setDelay
- 
setFileDelay
- 
setEnd
- 
setReopen
- 
setBeanName- Specified by:
- setBeanNamein interface- BeanNameAware
 
- 
setOutputChannel
- 
setOutputChannelName
- 
setErrorChannel
- 
setErrorChannelName
- 
setAutoStartuppublic void setAutoStartup(boolean autoStartup) 
- 
setPhasepublic void setPhase(int phase) 
- 
setSendTimeoutpublic void setSendTimeout(long sendTimeout) 
- 
setShouldTrackpublic void setShouldTrack(boolean shouldTrack) 
- 
setErrorMessageStrategy
- 
setApplicationEventPublisher- Specified by:
- setApplicationEventPublisherin interface- ApplicationEventPublisherAware
 
- 
startpublic void start()
- 
stoppublic void stop()
- 
isRunningpublic boolean isRunning()
- 
getPhasepublic int getPhase()- Specified by:
- getPhasein interface- Phased
- Specified by:
- getPhasein interface- SmartLifecycle
 
- 
isAutoStartuppublic boolean isAutoStartup()- Specified by:
- isAutoStartupin interface- SmartLifecycle
 
- 
stop- Specified by:
- stopin interface- SmartLifecycle
 
- 
getObjectType- Specified by:
- getObjectTypein interface- FactoryBean<FileTailingMessageProducerSupport>
- Specified by:
- getObjectTypein class- AbstractFactoryBean<FileTailingMessageProducerSupport>
 
- 
createInstance- Specified by:
- createInstancein class- AbstractFactoryBean<FileTailingMessageProducerSupport>
 
 
-