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 Summary
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
loggerFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier 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.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
FileTailInboundChannelAdapterFactoryBean
public FileTailInboundChannelAdapterFactoryBean()
-
-
Method Details
-
setNativeOptions
-
setEnableStatusReader
public 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
-
setIdleEventInterval
public 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 interfaceBeanNameAware
-
setOutputChannel
-
setOutputChannelName
-
setErrorChannel
-
setErrorChannelName
-
setAutoStartup
public void setAutoStartup(boolean autoStartup) -
setPhase
public void setPhase(int phase) -
setSendTimeout
public void setSendTimeout(long sendTimeout) -
setShouldTrack
public void setShouldTrack(boolean shouldTrack) -
setErrorMessageStrategy
-
setApplicationEventPublisher
- Specified by:
setApplicationEventPublisherin interfaceApplicationEventPublisherAware
-
start
-
stop
-
isRunning
-
getPhase
public int getPhase()- Specified by:
getPhasein interfacePhased- Specified by:
getPhasein interfaceSmartLifecycle
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceSmartLifecycle
-
stop
- Specified by:
stopin interfaceSmartLifecycle
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<FileTailingMessageProducerSupport>- Specified by:
getObjectTypein classAbstractFactoryBean<FileTailingMessageProducerSupport>
-
createInstance
- Specified by:
createInstancein classAbstractFactoryBean<FileTailingMessageProducerSupport>
-