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 TailAdapterSpec()  
  • Method Summary

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