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
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected FileTailingMessageProducerSupport
Class<?>
int
getPhase()
boolean
boolean
void
setApplicationEventPublisher
(ApplicationEventPublisher applicationEventPublisher) void
setAutoStartup
(boolean autoStartup) void
setBeanName
(String name) void
void
setEnableStatusReader
(boolean enableStatusReader) If false, thread for capturing stderr will not be started and stderr output will be ignored.void
void
setErrorChannel
(MessageChannel errorChannel) void
setErrorChannelName
(String errorChannelName) void
setErrorMessageStrategy
(ErrorMessageStrategy errorMessageStrategy) void
void
setFileDelay
(Long fileDelay) void
setIdleEventInterval
(long idleEventInterval) How often to emitFileTailingMessageProducerSupport.FileTailingIdleEvent
s in milliseconds.void
setNativeOptions
(String nativeOptions) void
setOutputChannel
(MessageChannel outputChannel) void
setOutputChannelName
(String outputChannelName) void
setPhase
(int phase) void
void
setSendTimeout
(long sendTimeout) void
setShouldTrack
(boolean shouldTrack) void
setTaskExecutor
(TaskExecutor taskExecutor) void
setTaskScheduler
(TaskScheduler taskScheduler) void
start()
void
stop()
void
Methods 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.FileTailingIdleEvent
s in milliseconds.- Parameters:
idleEventInterval
- the interval.- Since:
- 5.0
-
setFile
-
setTaskExecutor
-
setTaskScheduler
-
setDelay
-
setFileDelay
-
setEnd
-
setReopen
-
setBeanName
- Specified by:
setBeanName
in 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:
setApplicationEventPublisher
in interfaceApplicationEventPublisherAware
-
start
public void start() -
stop
public void stop() -
isRunning
public boolean isRunning() -
getPhase
public int getPhase()- Specified by:
getPhase
in interfacePhased
- Specified by:
getPhase
in interfaceSmartLifecycle
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartup
in interfaceSmartLifecycle
-
stop
- Specified by:
stop
in interfaceSmartLifecycle
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<FileTailingMessageProducerSupport>
- Specified by:
getObjectType
in classAbstractFactoryBean<FileTailingMessageProducerSupport>
-
createInstance
- Specified by:
createInstance
in classAbstractFactoryBean<FileTailingMessageProducerSupport>
-