Package org.opendaylight.raft.spi
Class FileBackedOutputStreamFactory
java.lang.Object
org.opendaylight.raft.spi.FileBackedOutputStreamFactory
A factory for creating
FileBackedOutputStream
instances.- Author:
- Thomas Pantelis
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileBackedOutputStreamFactory
(int threshold, @Nullable Path directory) Convenience constructor.Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionCreates a newFileBackedOutputStream
with the settings configured for this factory.Creates a newSharedFileBackedOutputStream
with the settings configured for this factory.final String
toString()
-
Constructor Details
-
FileBackedOutputStreamFactory
Convenience constructor. Construcs and intermediateFileBackedOutputStream.Configuration
.- Parameters:
threshold
- the number of bytes before streams should switch to buffering to a filedirectory
- the directory in which to create files if needed. Ifnull
, the default temp file location is used.
-
FileBackedOutputStreamFactory
Default constructor.- Parameters:
config
- theFileBackedOutputStream.Configuration
to use
-
-
Method Details
-
newInstance
Creates a newFileBackedOutputStream
with the settings configured for this factory.- Returns:
- a
FileBackedOutputStream
instance
-
toString
-