/** * The {@link FileSplitterSpec} builder factory method with default arguments. * @return the {@link FileSplitterSpec} builder. * @since 1.1 */ public static FileSplitterSpec splitter() { return splitter(true); }
/** * Specify if {@link FileSplitter} should emit * {@link org.springframework.integration.file.splitter.FileSplitter.FileMarker}s * Defaults to {@code false}. * @return the FileSplitterSpec * @since 1.2 * @see FileSplitter */ public FileSplitterSpec markers() { return markers(false); }
/** * The {@link FileSplitterSpec} builder factory method with {@code iterator} and {@code markers} * flags specified. * @param iterator the {@code boolean} flag to specify the {@code iterator} mode or not. * @param markers true to emit start of file/end of file marker messages before/after the data. * @return the {@link FileSplitterSpec} builder. * @since 1.1 */ public static FileSplitterSpec splitter(boolean iterator, boolean markers) { return new FileSplitterSpec(iterator, markers); }
/** * @param directoryExpression an expression to evaluate the target directory. * @return the FileWritingMessageHandlerSpec instance. * @since 1.1.1 */ public static FileWritingMessageHandlerSpec outboundGateway(Expression directoryExpression) { return new FileWritingMessageHandlerSpec(directoryExpression).expectReply(true); }
public static FileInboundChannelAdapterSpec inboundAdapter(File directory, Comparator<File> receptionOrderComparator) { return new FileInboundChannelAdapterSpec(receptionOrderComparator).directory(directory); }
/** * Factory for the {@link FileInboundChannelAdapterSpec} * @param directory the based directory to poll * @param receptionOrderComparator the {@link Comparator} to order the files * in the internal queue * @return the FileInboundChannelAdapterSpec instance */ public FileInboundChannelAdapterSpec file(File directory, Comparator<File> receptionOrderComparator) { return Files.inboundAdapter(directory, receptionOrderComparator); }
@Override public TailAdapterSpec outputChannel(MessageChannel outputChannel) { this.outputChannel = outputChannel; return _this(); }
/** * The {@link FileSplitterSpec} builder factory method with {@code iterator} flag specified. * @param iterator the {@code boolean} flag to specify the {@code iterator} mode or not. * @return the {@link FileSplitterSpec} builder. * @since 1.1 */ public static FileSplitterSpec splitter(boolean iterator) { return splitter(iterator, false); }
/** * @param directoryExpression an expression to evaluate the target directory. * @return the FileWritingMessageHandlerSpec instance. * @since 1.1.1 */ public static FileWritingMessageHandlerSpec outboundAdapter(Expression directoryExpression) { return new FileWritingMessageHandlerSpec(directoryExpression).expectReply(false); }
public static FileInboundChannelAdapterSpec inboundAdapter(File directory, Comparator<File> receptionOrderComparator) { return new FileInboundChannelAdapterSpec(receptionOrderComparator).directory(directory); }
/** * Specify if {@link FileSplitter} should emit * {@link org.springframework.integration.file.splitter.FileSplitter.FileMarker}s * Defaults to {@code false}. * @return the FileSplitterSpec * @since 1.2 * @see FileSplitter */ public FileSplitterSpec markers() { return markers(false); }
/** * Factory for the {@link FileInboundChannelAdapterSpec} * @param directory the based directory to poll * @param receptionOrderComparator the {@link Comparator} to order the files * in the internal queue * @return the FileInboundChannelAdapterSpec instance */ public FileInboundChannelAdapterSpec file(File directory, Comparator<File> receptionOrderComparator) { return Files.inboundAdapter(directory, receptionOrderComparator); }
@Override public TailAdapterSpec errorChannel(MessageChannel errorChannel) { this.errorChannel = errorChannel; return _this(); }
/** * The {@link FileSplitterSpec} builder factory method with {@code iterator} and {@code markers} * flags specified. * @param iterator the {@code boolean} flag to specify the {@code iterator} mode or not. * @param markers true to emit start of file/end of file marker messages before/after the data. * @return the {@link FileSplitterSpec} builder. * @since 1.1 */ public static FileSplitterSpec splitter(boolean iterator, boolean markers) { return new FileSplitterSpec(iterator, markers); }
/** * The {@link FileSplitterSpec} builder factory method with {@code iterator} flag specified. * @param iterator the {@code boolean} flag to specify the {@code iterator} mode or not. * @return the {@link FileSplitterSpec} builder. * @since 1.1 */ public static FileSplitterSpec splitter(boolean iterator) { return splitter(iterator, false); }
/** * @param directoryExpression an expression to evaluate the target directory. * @return the FileWritingMessageHandlerSpec instance. * @since 1.1.1 */ public static FileWritingMessageHandlerSpec outboundGateway(Expression directoryExpression) { return new FileWritingMessageHandlerSpec(directoryExpression).expectReply(true); }
@Override public TailAdapterSpec outputChannel(MessageChannel outputChannel) { this.outputChannel = outputChannel; return _this(); }
/** * The {@link FileSplitterSpec} builder factory method with default arguments. * @return the {@link FileSplitterSpec} builder. * @since 1.1 */ public static FileSplitterSpec splitter() { return splitter(true); }
/** * @param directoryExpression an expression to evaluate the target directory. * @return the FileWritingMessageHandlerSpec instance. * @since 1.1.1 */ public static FileWritingMessageHandlerSpec outboundAdapter(Expression directoryExpression) { return new FileWritingMessageHandlerSpec(directoryExpression).expectReply(false); }
@Override public TailAdapterSpec errorChannel(MessageChannel errorChannel) { this.errorChannel = errorChannel; return _this(); }