| Package | Description |
|---|---|
| org.jsimpledb.kv.raft.fallback |
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. |
| Modifier and Type | Class and Description |
|---|---|
class |
NullMergeStrategy
MergeStrategy that does nothing, i.e., it leaves the destination database unmodified. |
class |
OverwriteMergeStrategy
MergeStrategy that completely overwrites the destination database with the content of the source database. |
| Modifier and Type | Method and Description |
|---|---|
MergeStrategy |
FallbackTarget.getRejoinMergeStrategy()
Get the merge strategy to apply when transitioning from a lower priority database to this database
because our
RaftKVDatabase cluster has become available. |
MergeStrategy |
FallbackTarget.getUnavailableMergeStrategy()
Get the merge strategy to apply when transitioning from this database to a lower priority database
because our
RaftKVDatabase cluster has become unavailable. |
| Modifier and Type | Method and Description |
|---|---|
void |
FallbackTarget.setRejoinMergeStrategy(MergeStrategy strategy)
Configure the merge strategy to apply when transitioning from a lower priority database to this database
because our
RaftKVDatabase 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 our
RaftKVDatabase cluster has become unavailable. |
Copyright © 2016. All rights reserved.