public class BaseDiskDurability extends java.lang.Object implements DiskDurability
Modifier and Type | Class and Description |
---|---|
static class |
BaseDiskDurability.Timed |
DiskDurability.DiskDurabilityEnum
Modifier and Type | Field and Description |
---|---|
static DiskDurability |
ALWAYS
Static instance of
DiskDurability representing disk durability
where every mutative operation is fully synced/fsynched/flushed to disk. |
static DiskDurability |
OS_DETERMINED
Static instance of
DiskDurability representing disk durability
that is left to the operating system. |
Modifier and Type | Method and Description |
---|---|
DiskDurability.DiskDurabilityEnum |
getDurabilityEnum() |
DiskDurability |
mergeConservatively(DiskDurability other) |
static BaseDiskDurability.Timed |
timed(java.lang.Long duration,
java.util.concurrent.TimeUnit units)
Static factory for timed
DiskDurability instances. |
java.lang.String |
toString() |
public static DiskDurability OS_DETERMINED
DiskDurability
representing disk durability
that is left to the operating system. This is the laxest durability,
and delegates disk flushing to operating system.
Note that this is a constraint, and the implementation is free to be more
conservative.public static DiskDurability ALWAYS
DiskDurability
representing disk durability
where every mutative operation is fully synced/fsynched/flushed to disk.
Note that this is a constraint, and the implementation is free to be more
conservative.public static BaseDiskDurability.Timed timed(java.lang.Long duration, java.util.concurrent.TimeUnit units)
DiskDurability
instances. The time duration
denotes the longest time a mutative change will go without being
fully synced/fsynched/flushed to disk.
Note that this is a constraint, and the implementation is free to be more
conservative.duration
- long durationunits
- units of the durationpublic DiskDurability.DiskDurabilityEnum getDurabilityEnum()
getDurabilityEnum
in interface DiskDurability
public java.lang.String toString()
toString
in class java.lang.Object
public DiskDurability mergeConservatively(DiskDurability other)
mergeConservatively
in interface DiskDurability