Class FileTailInboundChannelAdapterFactoryBean

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<FileTailingMessageProducerSupport>
org.springframework.integration.file.config.FileTailInboundChannelAdapterFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<FileTailingMessageProducerSupport>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

public class FileTailInboundChannelAdapterFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<FileTailingMessageProducerSupport> implements org.springframework.beans.factory.BeanNameAware, org.springframework.context.SmartLifecycle, org.springframework.context.ApplicationEventPublisherAware
Since:
3.0
  • Constructor Details

    • FileTailInboundChannelAdapterFactoryBean

      public FileTailInboundChannelAdapterFactoryBean()
  • Method Details

    • setNativeOptions

      public void setNativeOptions(String nativeOptions)
    • 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 emit FileTailingMessageProducerSupport.FileTailingIdleEvents in milliseconds.
      Parameters:
      idleEventInterval - the interval.
      Since:
      5.0
    • setFile

      public void setFile(File file)
    • setTaskExecutor

      public void setTaskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
    • setTaskScheduler

      public void setTaskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler)
    • setDelay

      public void setDelay(Long delay)
    • setFileDelay

      public void setFileDelay(Long fileDelay)
    • setEnd

      public void setEnd(Boolean end)
    • setReopen

      public void setReopen(Boolean reopen)
    • setBeanName

      public void setBeanName(@Nullable String name)
      Specified by:
      setBeanName in interface org.springframework.beans.factory.BeanNameAware
    • setOutputChannel

      public void setOutputChannel(org.springframework.messaging.MessageChannel outputChannel)
    • setOutputChannelName

      public void setOutputChannelName(String outputChannelName)
    • setErrorChannel

      public void setErrorChannel(org.springframework.messaging.MessageChannel errorChannel)
    • setErrorChannelName

      public void setErrorChannelName(String errorChannelName)
    • 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

      public void setErrorMessageStrategy(org.springframework.integration.support.ErrorMessageStrategy errorMessageStrategy)
    • setApplicationEventPublisher

      public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
      Specified by:
      setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware
    • start

      public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle
    • getPhase

      public int getPhase()
      Specified by:
      getPhase in interface org.springframework.context.Phased
      Specified by:
      getPhase in interface org.springframework.context.SmartLifecycle
    • isAutoStartup

      public boolean isAutoStartup()
      Specified by:
      isAutoStartup in interface org.springframework.context.SmartLifecycle
    • stop

      public void stop(Runnable callback)
      Specified by:
      stop in interface org.springframework.context.SmartLifecycle
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<FileTailingMessageProducerSupport>
      Specified by:
      getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<FileTailingMessageProducerSupport>
    • createInstance

      protected FileTailingMessageProducerSupport createInstance()
      Specified by:
      createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<FileTailingMessageProducerSupport>