Class BaseDiskDurability
java.lang.Object
com.terracottatech.store.configuration.BaseDiskDurability
- All Implemented Interfaces:
DiskDurability
- Direct Known Subclasses:
BaseDiskDurability.Timed
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.terracottatech.store.configuration.DiskDurability
DiskDurability.DiskDurabilityEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic DiskDurability
Static instance ofDiskDurability
representing disk durability where every mutative operation is fully synced/fsynched/flushed to disk.static DiskDurability
Static instance ofDiskDurability
representing disk durability that is left to the operating system. -
Method Summary
Modifier and TypeMethodDescriptionstatic BaseDiskDurability.Timed
Static factory for timedDiskDurability
instances.toString()
-
Field Details
-
OS_DETERMINED
Static instance ofDiskDurability
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. -
ALWAYS
Static instance ofDiskDurability
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.
-
-
Method Details
-
timed
Static factory for timedDiskDurability
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.- Parameters:
duration
- long durationunits
- units of the duration- Returns:
- timed disk durability
-
getDurabilityEnum
- Specified by:
getDurabilityEnum
in interfaceDiskDurability
-
toString
-
mergeConservatively
- Specified by:
mergeConservatively
in interfaceDiskDurability
-