public class FileBufferHolder extends Object implements IFileBufferHolder
| Constructor and Description |
|---|
FileBufferHolder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(File file)
Add a file to the buffer
|
void |
awaitReady()
Wait for the buffer to be ready in a blocking manner
|
List<File> |
getFileBuffer() |
Set<FileNode> |
getSyncFiles() |
void |
setReady()
Trigger the buffer to be allowed to be processed
|
void |
setSyncFiles(FileNode fileNode)
Set the files which are in sync with the DHT
|
public void addFile(File file)
file - the file to add to the bufferpublic void setSyncFiles(FileNode fileNode)
fileNode - the base file node to sync recursivelypublic void setReady()
public void awaitReady()
public Set<FileNode> getSyncFiles()
getSyncFiles in interface IFileBufferHolderpublic List<File> getFileBuffer()
getFileBuffer in interface IFileBufferHolderCopyright © 2019. All rights reserved.