Uses of Class
org.springframework.integration.file.dsl.FileWritingMessageHandlerSpec
Package
Description
Provides File Components support for Spring Integration Java DSL.
-
Uses of FileWritingMessageHandlerSpec in org.springframework.integration.file.dsl
Modifier and TypeMethodDescriptionFileWritingMessageHandlerSpec.appendNewLine
(boolean appendNewLine) Iftrue
will append a new-line after each write.FileWritingMessageHandlerSpec.autoCreateDirectory
(boolean autoCreateDirectory) Specify whether to create the destination directory automatically if it does not yet exist upon initialization.FileWritingMessageHandlerSpec.bufferSize
(int bufferSize) Set the buffer size to use while writing to files; default 8192.Set the charset to use when converting String payloads to bytes as the content of the file.FileWritingMessageHandlerSpec.chmod
(int chmod) Set the file permissions after uploading, e.g.FileWritingMessageHandlerSpec.deleteSourceFiles
(boolean deleteSourceFiles) Specify whether to delete source Files after writing to the destination directory.FileWritingMessageHandlerSpec.fileExistsMode
(FileExistsMode fileExistsMode) Set theFileExistsMode
that specifies what will happen in case the destination exists.FileWritingMessageHandlerSpec.fileNameExpression
(String fileNameExpression) Set theDefaultFileNameGenerator
based on the provided SpEL expression.FileWritingMessageHandlerSpec.fileNameGenerator
(FileNameGenerator fileNameGenerator) Set the file name generator used to generate the target file name.FileWritingMessageHandlerSpec.flushInterval
(long flushInterval) Set the frequency to flush buffers whenFileExistsMode.APPEND_NO_FLUSH
is being used.FileWritingMessageHandlerSpec.flushPredicate
(FileWritingMessageHandler.MessageFlushPredicate flushPredicate) Specify aFileWritingMessageHandler.MessageFlushPredicate
for flush task when theFileExistsMode.APPEND_NO_FLUSH
is in use.FileWritingMessageHandlerSpec.flushWhenIdle
(boolean flushWhenIdle) Set the flush when idle flag to false if you wish the interval to apply to when the file was opened rather than when the file was last written.Files.outboundAdapter
(File destinationDirectory) Create aFileWritingMessageHandlerSpec
builder for the one-wayFileWritingMessageHandler
.Files.outboundAdapter
(String directoryExpression) Create aFileWritingMessageHandlerSpec
builder for the one-wayFileWritingMessageHandler
.static <P> FileWritingMessageHandlerSpec
Files.outboundAdapter
(Function<Message<P>, ?> directoryFunction) Create aFileWritingMessageHandlerSpec
builder for the one-wayFileWritingMessageHandler
.Files.outboundAdapter
(Expression directoryExpression) Create aFileWritingMessageHandlerSpec
builder for the one-wayFileWritingMessageHandler
.Files.outboundGateway
(File destinationDirectory) Create aFileWritingMessageHandlerSpec
builder for the gatewayFileWritingMessageHandler
.Files.outboundGateway
(String directoryExpression) Create aFileWritingMessageHandlerSpec
builder for the gatewayFileWritingMessageHandler
.static <P> FileWritingMessageHandlerSpec
Files.outboundGateway
(Function<Message<P>, ?> directoryFunction) Create aFileWritingMessageHandlerSpec
builder for the gatewayFileWritingMessageHandler
.Files.outboundGateway
(Expression directoryExpression) Create aFileWritingMessageHandlerSpec
based on the providedExpression
for directory.FileWritingMessageHandlerSpec.preserveTimestamp
(boolean preserveTimestamp) Set to true to preserve the destination file timestamp.FileWritingMessageHandlerSpec.taskScheduler
(TaskScheduler taskScheduler) Specify aTaskScheduler
for flush task when theFileExistsMode.APPEND_NO_FLUSH
is in use.FileWritingMessageHandlerSpec.temporaryFileSuffix
(String temporaryFileSuffix) By default, every file that is in the process of being transferred will appear in the file system with an additional suffix, which by default is.writing
.