Class TailAdapterSpec

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,P>
org.springframework.integration.dsl.MessageProducerSpec<TailAdapterSpec,FileTailingMessageProducerSupport>
org.springframework.integration.file.dsl.TailAdapterSpec
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<FileTailingMessageProducerSupport>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

public class TailAdapterSpec extends org.springframework.integration.dsl.MessageProducerSpec<TailAdapterSpec,FileTailingMessageProducerSupport>
A MessageProducerSpec for file tailing adapters.
Since:
5.0
  • Field Summary

    Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec

    PARSER, target

    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

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    autoStartup(boolean autoStartup)
     
    delay(long delay)
    The delay between checks of the file for new content in milliseconds.
     
    enableStatusReader(boolean enableStatusReader)
    This field control the stderr events.
    end(boolean end)
    If true, tail from the end of the file, otherwise include all lines from the beginning.
    errorChannel(org.springframework.messaging.MessageChannel errorChannel)
     
    protected TailAdapterSpec
    file(File file)
     
    fileDelay(long fileDelay)
    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.
    id(String id)
     
    idleEventInterval(long idleEventInterval)
    Specify the idle interval before start sending idle events.
    nativeOptions(String nativeOptions)
    Specify the options string for native tail command.
    outputChannel(org.springframework.messaging.MessageChannel outputChannel)
     
    phase(int phase)
     
    reopen(boolean reopen)
    If true, close and reopen the file between reading chunks.
    taskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
    Configure a task executor.
    taskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler)
    Set a task scheduler - defaults to the integration 'taskScheduler'.

    Methods inherited from class org.springframework.integration.dsl.MessageProducerSpec

    errorChannel, errorMessageStrategy, outputChannel, sendTimeout, shouldTrack

    Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec

    _this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop

    Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait