public static TailAdapterSpec tailAdapter(File file) { return new TailAdapterSpec().file(file); }
@Override public TailAdapterSpec outputChannel(MessageChannel outputChannel) { this.outputChannel = outputChannel; return _this(); }
@Bean public IntegrationFlow tailFlow() { return IntegrationFlows.from((MessageProducers p) -> p.tail(new File(tmpDir.getRoot(), "TailTest")) .delay(500) .end(false) .id("tailer") .autoStartup(false)) .transform("hello "::concat) .channel(MessageChannels.queue("tailChannel")) .get(); }
@Override public TailAdapterSpec outputChannel(MessageChannel outputChannel) { this.outputChannel = outputChannel; return _this(); }
public static TailAdapterSpec tailAdapter(File file) { return new TailAdapterSpec().file(file); }
@Override public TailAdapterSpec errorChannel(MessageChannel errorChannel) { this.errorChannel = errorChannel; return _this(); }
@Override public TailAdapterSpec errorChannel(MessageChannel errorChannel) { this.errorChannel = errorChannel; return _this(); }
/** * Configure a task executor. Defaults to a * {@link org.springframework.core.task.SimpleAsyncTaskExecutor}. * @param taskExecutor the taskExecutor. * @return the spec. */ public TailAdapterSpec taskExecutor(TaskExecutor taskExecutor) { this.factoryBean.setTaskExecutor(taskExecutor); return _this(); }
/** * @param nativeOptions the nativeOptions. * @return the spec. * @see org.springframework.integration.file.tail.OSDelegatingFileTailingMessageProducer#setOptions(String) */ public TailAdapterSpec nativeOptions(String nativeOptions) { this.factoryBean.setNativeOptions(nativeOptions); return _this(); }
/** * Set a task scheduler - defaults to the integration 'taskScheduler'. * @param taskScheduler the taskScheduler. * @return the spec. */ public TailAdapterSpec taskScheduler(TaskScheduler taskScheduler) { this.factoryBean.setTaskScheduler(taskScheduler); return _this(); }
/** * @param fileDelay the fileDelay. * @return the spec. * @see FileTailingMessageProducerSupport#setTailAttemptsDelay(long) */ public TailAdapterSpec fileDelay(long fileDelay) { this.factoryBean.setFileDelay(fileDelay); return _this(); }
/** * @param reopen the reopen. * @return the spec. * @see org.springframework.integration.file.tail.ApacheCommonsFileTailingMessageProducer#setReopen(boolean) */ public TailAdapterSpec reopen(boolean reopen) { this.factoryBean.setReopen(reopen); return _this(); }
@Override public TailAdapterSpec autoStartup(boolean autoStartup) { this.factoryBean.setAutoStartup(autoStartup); return _this(); }
/** * Set a task scheduler - defaults to the integration 'taskScheduler'. * @param taskScheduler the taskScheduler. * @return the spec. */ public TailAdapterSpec taskScheduler(TaskScheduler taskScheduler) { this.factoryBean.setTaskScheduler(taskScheduler); return _this(); }
/** * @param reopen the reopen. * @return the spec. * @see org.springframework.integration.file.tail.ApacheCommonsFileTailingMessageProducer#setReopen(boolean) */ public TailAdapterSpec reopen(boolean reopen) { this.factoryBean.setReopen(reopen); return _this(); }
@Override public TailAdapterSpec phase(int phase) { this.factoryBean.setPhase(phase); return _this(); }
@Override public TailAdapterSpec autoStartup(boolean autoStartup) { this.factoryBean.setAutoStartup(autoStartup); return _this(); }
TailAdapterSpec file(File file) { Assert.notNull(file, "'file' must not be null"); this.factoryBean.setFile(file); return _this(); }
/** * @param end the end. * @return the spec. * @see org.springframework.integration.file.tail.ApacheCommonsFileTailingMessageProducer#setEnd(boolean) */ public TailAdapterSpec end(boolean end) { this.factoryBean.setEnd(end); return _this(); }
TailAdapterSpec file(File file) { Assert.notNull(file, "'file' must not be null"); this.factoryBean.setFile(file); return _this(); }