Uses of Interface
io.permazen.kv.raft.fallback.MergeStrategy
Package
Description
A partition-tolerant
KVDatabase
that automatically migrates between a clustered
RaftKVDatabase
and a private non-clustered "standalone mode"
KVDatabase
, based on availability of the Raft cluster.-
Uses of MergeStrategy in io.permazen.kv.raft.fallback
Modifier and TypeClassDescriptionclass
MergeStrategy
that does nothing, i.e., it leaves the destination database unmodified.class
MergeStrategy
that completely overwrites the destination database with the content of the source database.Modifier and TypeMethodDescriptionFallbackTarget.getRejoinMergeStrategy()
Get the merge strategy to apply when transitioning from a lower priority database to this database because ourRaftKVDatabase
cluster has become available.FallbackTarget.getUnavailableMergeStrategy()
Get the merge strategy to apply when transitioning from this database to a lower priority database because ourRaftKVDatabase
cluster has become unavailable.Modifier and TypeMethodDescriptionvoid
FallbackTarget.setRejoinMergeStrategy
(MergeStrategy strategy) Configure the merge strategy to apply when transitioning from a lower priority database to this database because ourRaftKVDatabase
cluster has become available again.void
FallbackTarget.setUnavailableMergeStrategy
(MergeStrategy strategy) Configure the merge strategy to apply when transitioning from this database to a lower priority database because ourRaftKVDatabase
cluster has become unavailable.