public static interface FileWritingMessageHandler.FlushPredicate
FileExistsMode.APPEND_NO_FLUSH
an implementation of this interface is called for each file that has pending data
to flush when FileWritingMessageHandler.flushIfNeeded(FlushPredicate)
is invoked.| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldFlush(String fileAbsolutePath,
long lastWrite) |
boolean shouldFlush(String fileAbsolutePath, long lastWrite)
fileAbsolutePath - the path to the file.lastWrite - the time of the last write - System.currentTimeMillis().