Example usage for Java org.springframework.integration.file FileWritingMessageHandler fields, constructors, methods, implement or subclass
The text is from its open source code.
FileWritingMessageHandler(File destinationDirectory) Constructor which sets the #destinationDirectoryExpression using a LiteralExpression . | |
FileWritingMessageHandler(Expression destinationDirectoryExpression) Constructor which sets the #destinationDirectoryExpression . |
void | afterPropertiesSet() |
void | flushIfNeeded(FlushPredicate flushPredicate) When using FileExistsMode#APPEND_NO_FLUSH you can invoke this method to selectively flush and close open files. |
void | handleMessage(Message> messageArg) |
void | setAppendNewLine(boolean appendNewLine) If 'true' will append a new-line after each write. |
void | setAutoCreateDirectory(boolean autoCreateDirectory) Specify whether to create the destination directory automatically if it does not yet exist upon initialization. |
void | setBeanFactory(BeanFactory beanFactory) |
void | setCharset(String charset) Set the charset name to use when writing a File from a String-based Message payload. |
void | setExpectReply(boolean expectReply) Specify whether a reply Message is expected. |
void | setFileExistsMode(FileExistsMode fileExistsMode) Will set the FileExistsMode that specifies what will happen in case the destination exists. |
void | setFileNameGenerator(FileNameGenerator fileNameGenerator) Provide the FileNameGenerator strategy to use when generating the destination file's name. |
void | setFlushInterval(long flushInterval) Set the frequency to flush buffers when FileExistsMode#APPEND_NO_FLUSH is being used. |
void | setFlushPredicate(MessageFlushPredicate flushPredicate) Set a MessageFlushPredicate to use when flushing files when FileExistsMode#APPEND_NO_FLUSH is being used. |
void | setFlushWhenIdle(boolean flushWhenIdle) Determine whether the #setFlushInterval(long) flushInterval applies only to idle files (default) or whether to flush on that interval after the first write to a previously flushed or new file. |
void | setOutputChannel(MessageChannel outputChannel) |
void | setTaskScheduler(TaskScheduler taskScheduler) Configure a TaskScheduler for those components which logic relies on the scheduled tasks. |
void | start() |
void | stop() |
void | trigger(Message> message) When using FileExistsMode#APPEND_NO_FLUSH , you can send a message to this method to flush any file(s) that needs it. |