public class TailAdapterSpec extends MessageProducerSpec<TailAdapterSpec,org.springframework.integration.file.tail.FileTailingMessageProducerSupport>
MessageProducerSpec
for file tailing adapters.logger, PARSER, target
Modifier and Type | Method and Description |
---|---|
TailAdapterSpec |
autoStartup(boolean autoStartup) |
TailAdapterSpec |
delay(long delay) |
protected org.springframework.integration.file.tail.FileTailingMessageProducerSupport |
doGet() |
TailAdapterSpec |
end(boolean end) |
TailAdapterSpec |
errorChannel(org.springframework.messaging.MessageChannel errorChannel)
Configure the
MessageChannel to which error messages will be sent. |
TailAdapterSpec |
fileDelay(long fileDelay) |
TailAdapterSpec |
id(java.lang.String id)
Configure the component identifier.
|
TailAdapterSpec |
nativeOptions(java.lang.String nativeOptions) |
TailAdapterSpec |
outputChannel(org.springframework.messaging.MessageChannel outputChannel)
Specify the
outputChannel for the
MessageProducer |
TailAdapterSpec |
phase(int phase) |
TailAdapterSpec |
reopen(boolean reopen) |
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'.
|
errorChannel, outputChannel
_this, get, getId, getObject, getObjectType, isSingleton
public TailAdapterSpec nativeOptions(java.lang.String nativeOptions)
nativeOptions
- the nativeOptions.OSDelegatingFileTailingMessageProducer.setOptions(String)
public TailAdapterSpec taskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
SimpleAsyncTaskExecutor
.taskExecutor
- the taskExecutor.public TailAdapterSpec taskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler)
taskScheduler
- the taskScheduler.public TailAdapterSpec delay(long delay)
delay
- the delay.ApacheCommonsFileTailingMessageProducer.setPollingDelay(long)
public TailAdapterSpec fileDelay(long fileDelay)
fileDelay
- the fileDelay.FileTailingMessageProducerSupport.setTailAttemptsDelay(long)
public TailAdapterSpec end(boolean end)
end
- the end.ApacheCommonsFileTailingMessageProducer.setEnd(boolean)
public TailAdapterSpec reopen(boolean reopen)
reopen
- the reopen.ApacheCommonsFileTailingMessageProducer.setReopen(boolean)
public TailAdapterSpec id(java.lang.String id)
MessageProducerSpec
beanName
to register the
bean in the application context for this component.
Configure the message producer's bean name.id
in class MessageProducerSpec<TailAdapterSpec,org.springframework.integration.file.tail.FileTailingMessageProducerSupport>
id
- the id.public TailAdapterSpec phase(int phase)
phase
in class MessageProducerSpec<TailAdapterSpec,org.springframework.integration.file.tail.FileTailingMessageProducerSupport>
phase
- the phase.SmartLifecycle
public TailAdapterSpec autoStartup(boolean autoStartup)
autoStartup
in class MessageProducerSpec<TailAdapterSpec,org.springframework.integration.file.tail.FileTailingMessageProducerSupport>
autoStartup
- the autoStartup.SmartLifecycle
public TailAdapterSpec outputChannel(org.springframework.messaging.MessageChannel outputChannel)
MessageProducerSpec
outputChannel
for the
MessageProducer
outputChannel
in class MessageProducerSpec<TailAdapterSpec,org.springframework.integration.file.tail.FileTailingMessageProducerSupport>
outputChannel
- the outputChannel.MessageProducerSupport.setOutputChannel(MessageChannel)
public TailAdapterSpec errorChannel(org.springframework.messaging.MessageChannel errorChannel)
MessageProducerSpec
MessageChannel
to which error messages will be sent.errorChannel
in class MessageProducerSpec<TailAdapterSpec,org.springframework.integration.file.tail.FileTailingMessageProducerSupport>
errorChannel
- the errorChannel.MessageProducerSupport.setErrorChannel(MessageChannel)
protected org.springframework.integration.file.tail.FileTailingMessageProducerSupport doGet()
doGet
in class IntegrationComponentSpec<TailAdapterSpec,org.springframework.integration.file.tail.FileTailingMessageProducerSupport>