Uses of Class
org.springframework.integration.file.dsl.FileInboundChannelAdapterSpec
Package
Description
Provides File Components support for Spring Integration Java DSL.
-
Uses of FileInboundChannelAdapterSpec in org.springframework.integration.file.dsl
Modifier and TypeMethodDescriptionFileInboundChannelAdapterSpec.autoCreateDirectory
(boolean autoCreateDirectory) Specify whether to create the source directory automatically if it does not yet exist upon initialization.FileInboundChannelAdapterSpec.filter
(FileListFilter<File> filter) Configure the filter.FileInboundChannelAdapterSpec.filterExpression
(String expression) Configure theExpressionFileListFilter
.FileInboundChannelAdapterSpec.filterFunction
(Function<File, Boolean> filterFunction) Configure theExpressionFileListFilter
.FileInboundChannelAdapterSpec.ignoreHidden
(boolean ignoreHidden) Configure anIgnoreHiddenFileListFilter
ifignoreHidden == true
.Files.inboundAdapter
(File directory) Create aFileInboundChannelAdapterSpec
builder for theFileReadingMessageSource
.Files.inboundAdapter
(File directory, Comparator<File> receptionOrderComparator) Create aFileInboundChannelAdapterSpec
builder for theFileReadingMessageSource
.FileInboundChannelAdapterSpec.locker
(FileLocker locker) Set aFileLocker
to be used to guard files against duplicate processing.FileInboundChannelAdapterSpec.nioLocker()
Configure anNioFileLocker
.FileInboundChannelAdapterSpec.patternFilter
(String pattern) Configure aSimplePatternFileListFilter
.FileInboundChannelAdapterSpec.preventDuplicates
(boolean preventDuplicates) Configure anAcceptOnceFileListFilter
ifpreventDuplicates == true
, otherwise -AcceptAllFileListFilter
.FileInboundChannelAdapterSpec.recursive
(boolean recursive) A convenient flag to determine if target message source should use aRecursiveDirectoryScanner
or stay with a default one.FileInboundChannelAdapterSpec.regexFilter
(String regex) Configure aRegexPatternFileListFilter
.FileInboundChannelAdapterSpec.scanEachPoll
(boolean scanEachPoll) Set this flag if you want to make sure the internal queue is refreshed with the latest content of the input directory on each poll.FileInboundChannelAdapterSpec.scanner
(DirectoryScanner scanner) Specify a custom scanner.FileInboundChannelAdapterSpec.useWatchService
(boolean useWatchService) Switch thisFileReadingMessageSource
to use its internalWatchService
directory scanner.FileInboundChannelAdapterSpec.watchDirPredicate
(Predicate<Path> watchDirPredicate) Set aPredicate
to check if it is eligible forWatchService
.FileInboundChannelAdapterSpec.watchEvents
(FileReadingMessageSource.WatchEventType... watchEvents) TheWatchService
event types.FileInboundChannelAdapterSpec.watchMaxDepth
(int watchMaxDepth) Set a depth for files walk API.