public class FileBackedOutputStreamFactory extends Object
FileBackedOutputStream instances.FileBackedOutputStream| Constructor and Description |
|---|
FileBackedOutputStreamFactory(int fileThreshold,
String fileDirectory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FileBackedOutputStream |
newInstance()
Creates a new
FileBackedOutputStream with the settings configured for this factory. |
SharedFileBackedOutputStream |
newSharedInstance()
Creates a new
SharedFileBackedOutputStream with the settings configured for this factory. |
public FileBackedOutputStreamFactory(int fileThreshold,
@Nullable
String fileDirectory)
fileThreshold - the number of bytes before streams should switch to buffering to a filefileDirectory - the directory in which to create files if needed. If null, the default temp file
location is used.public FileBackedOutputStream newInstance()
FileBackedOutputStream with the settings configured for this factory.FileBackedOutputStream instancepublic SharedFileBackedOutputStream newSharedInstance()
SharedFileBackedOutputStream with the settings configured for this factory.SharedFileBackedOutputStream instanceCopyright © 2019 OpenDaylight. All rights reserved.