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 newFileBackedOutputStreamwith the settings configured for this factory.Creates a newSharedFileBackedOutputStreamwith the settings configured for this factory.final StringtoString()
-
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.Configurationto use
-
-
Method Details
-
newInstance
Creates a newFileBackedOutputStreamwith the settings configured for this factory.- Returns:
- a
FileBackedOutputStreaminstance
-
toString
-