Package org.opendaylight.raft.spi
Record Class FileBackedOutputStream.Configuration
java.lang.Object
java.lang.Record
org.opendaylight.raft.spi.FileBackedOutputStream.Configuration
- Record Components:
threshold
- the number of bytes before the stream should switch to buffering to a filedirectory
- the directory in which to create the file if needed. Ifnull
, the default temp file location is used.
- Enclosing class:
FileBackedOutputStream
public static record FileBackedOutputStream.Configuration(int threshold, @Nullable Path directory)
extends Record
Configuration for
FileBackedOutputStream
.-
Constructor Summary
ConstructorsConstructorDescriptionConfiguration
(int threshold, @Nullable Path directory) Creates an instance of aConfiguration
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Path
Returns the value of thedirectory
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thethreshold
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
threshold
public int threshold()Returns the value of thethreshold
record component.- Returns:
- the value of the
threshold
record component
-
directory
Returns the value of thedirectory
record component.- Returns:
- the value of the
directory
record component
-