public static interface FileWritingMessageHandler.MessageFlushPredicate
FileExistsMode.APPEND_NO_FLUSH
an implementation of this interface is called for each file that has pending data
to flush.FileWritingMessageHandler.trigger(Message)
Modifier and Type | Method and Description |
---|---|
boolean |
shouldFlush(String fileAbsolutePath,
long lastWrite,
Message<?> filterMessage) |
boolean shouldFlush(String fileAbsolutePath, long lastWrite, Message<?> filterMessage)
fileAbsolutePath
- the path to the file.lastWrite
- the time of the last write - System.currentTimeMillis()
.filterMessage
- an optional message to be used in the decision process.