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 DiskDurabilityStatic instance ofDiskDurabilityrepresenting disk durability where every mutative operation is fully synced/fsynched/flushed to disk.static DiskDurabilityStatic instance ofDiskDurabilityrepresenting disk durability that is left to the operating system. -
Method Summary
Modifier and TypeMethodDescriptionstatic BaseDiskDurability.TimedStatic factory for timedDiskDurabilityinstances.toString()
-
Field Details
-
OS_DETERMINED
Static instance ofDiskDurabilityrepresenting 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 ofDiskDurabilityrepresenting 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 timedDiskDurabilityinstances. 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:
getDurabilityEnumin interfaceDiskDurability
-
toString
-
mergeConservatively
- Specified by:
mergeConservativelyin interfaceDiskDurability
-