Class FileTailingMessageProducerSupport

  • Field Details Link icon

    • DEFAULT_TAIL_ATTEMPTS_DELAY Link icon

      public static final long DEFAULT_TAIL_ATTEMPTS_DELAY
      The default delay between tail attempts in milliseconds.
      See Also:
  • Constructor Details Link icon

    • FileTailingMessageProducerSupport Link icon

      public FileTailingMessageProducerSupport()
  • Method Details Link icon

    • setApplicationEventPublisher Link icon

      public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
      Specified by:
      setApplicationEventPublisher in interface ApplicationEventPublisherAware
    • setFile Link icon

      public void setFile(File file)
      The name of the file you wish to tail.
      Parameters:
      file - The absolute path of the file.
    • getFile Link icon

      protected File getFile()
    • setTaskExecutor Link icon

      public void setTaskExecutor(TaskExecutor taskExecutor)
      A task executor; default is a SimpleAsyncTaskExecutor.
      Parameters:
      taskExecutor - The task executor.
    • setTailAttemptsDelay Link icon

      public void setTailAttemptsDelay(long tailAttemptsDelay)
      The delay in milliseconds between attempts to tail a non-existent file, or between attempts to execute a process if it fails for any reason.
      Parameters:
      tailAttemptsDelay - the delay.
    • setIdleEventInterval Link icon

      public void setIdleEventInterval(long idleEventInterval)
      How often to emit FileTailingMessageProducerSupport.FileTailingIdleEvents in milliseconds.
      Parameters:
      idleEventInterval - the interval.
      Since:
      5.0
    • getMissingFileDelay Link icon

      protected long getMissingFileDelay()
    • getTaskExecutor Link icon

      protected TaskExecutor getTaskExecutor()
    • getComponentType Link icon

      public String getComponentType()
      Description copied from class: IntegrationObjectSupport
      Subclasses may implement this method to provide component type information.
      Specified by:
      getComponentType in interface NamedComponent
      Overrides:
      getComponentType in class IntegrationObjectSupport
    • send Link icon

      protected void send(String line)
    • publish Link icon

      protected void publish(String message)
    • doStart Link icon

      protected void doStart()
      Description copied from class: MessageProducerSupport
      Take no action by default. Subclasses may override this if they need lifecycle-managed behavior. Protected by 'lifecycleLock'.
      Overrides:
      doStart in class MessageProducerSupport
    • doStop Link icon

      protected void doStop()
      Description copied from class: MessageProducerSupport
      Take no action by default. Subclasses may override this if they need lifecycle-managed behavior.
      Overrides:
      doStop in class MessageProducerSupport