public class TargetFileBuffer
extends java.lang.Object
Constructor and Description |
---|
TargetFileBuffer() |
Modifier and Type | Method and Description |
---|---|
void |
addFileToBuffer(java.nio.file.Path filePath)
Add new file to buffer, the file creation time is retrieved from file
properties.
|
void |
addFileToBuffer(java.nio.file.Path path,
long currentTimeMillis)
Add a new file to buffer
|
int |
cleanupFiles(int maxCountFiles,
int maxAgeInDays)
Cleans the target directory All files which exceeds the 'maxCountFiles' or
the 'maxAgeInDays' are deleted from buffer and file system.
|
java.lang.String |
toString() |
public void addFileToBuffer(java.nio.file.Path path, long currentTimeMillis)
public void addFileToBuffer(java.nio.file.Path filePath)
public int cleanupFiles(int maxCountFiles, int maxAgeInDays)
public java.lang.String toString()
toString
in class java.lang.Object