Class FileBackedOutputStreamFactory
java.lang.Object
org.opendaylight.controller.cluster.io.FileBackedOutputStreamFactory
A factory for creating
FileBackedOutputStream instances.- Author:
- Thomas Pantelis
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileBackedOutputStreamFactory(int fileThreshold, @Nullable String fileDirectory) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionCreates a newFileBackedOutputStreamwith the settings configured for this factory.Creates a newSharedFileBackedOutputStreamwith the settings configured for this factory.
-
Constructor Details
-
FileBackedOutputStreamFactory
Constructor.- Parameters:
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.
-
-
Method Details
-
newInstance
Creates a newFileBackedOutputStreamwith the settings configured for this factory.- Returns:
- a
FileBackedOutputStreaminstance
-