public static enum Compaction.Mode extends Enum<Compaction.Mode>
| Enum Constant and Description |
|---|
DEFAULT
The
DEFAULT compaction mode is a special compaction mode which indicates that the configured
default compaction mode should be applied to the command. |
EXPIRING
The
EXPIRING compaction mode is an alias of the SEQUENTIAL mode. |
FULL
The
FULL compaction mode retains the command in the log until it has been stored and applied
on all servers in the cluster. |
QUORUM
The
QUORUM compaction mode retains the command in the log until it has been stored and applied
on a majority of servers in the cluster. |
RELEASE
The
RELEASE compaction mode retains the command in the log until it has been stored and applied
on a majority of servers in the cluster and is released. |
SEQUENTIAL
The
SEQUENTIAL compaction mode retains the command in the log until it has been stored and
applied on all servers in the cluster. |
SNAPSHOT
The
SNAPSHOT compaction mode indicates commands for which resulting state is stored in state machine
snapshots. |
TOMBSTONE
The
TOMBSTONE compaction mode is an alias of the SEQUENTIAL mode. |
UNKNOWN
The
UNKNOWN compaction mode is a special compaction mode which retains entries beyond the
snapshot index, requires that entries be stored on all servers, and removes entries from the log sequentially. |
| Modifier and Type | Method and Description |
|---|---|
static Compaction.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Compaction.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Compaction.Mode DEFAULT
DEFAULT compaction mode is a special compaction mode which indicates that the configured
default compaction mode should be applied to the command.public static final Compaction.Mode UNKNOWN
UNKNOWN compaction mode is a special compaction mode which retains entries beyond the
snapshot index, requires that entries be stored on all servers, and removes entries from the log sequentially.public static final Compaction.Mode SNAPSHOT
SNAPSHOT compaction mode indicates commands for which resulting state is stored in state machine
snapshots. Snapshot commands will be stored in the Raft log only until a snapshot of the state machine state has
been written to disk, at which time they'll be removed from the log. Note that snapshot commands can still safely
trigger state machine events. Commands that result in the publishing of events will be persisted in the log until
related events have been received by all clients even if a snapshot of the state machine has since been stored.public static final Compaction.Mode RELEASE
RELEASE compaction mode retains the command in the log until it has been stored and applied
on a majority of servers in the cluster and is released.public static final Compaction.Mode QUORUM
QUORUM compaction mode retains the command in the log until it has been stored and applied
on a majority of servers in the cluster. Once the commit has been applied to the state machine and
released, it may be removed during minor or major compaction.public static final Compaction.Mode FULL
FULL compaction mode retains the command in the log until it has been stored and applied
on all servers in the cluster. Once the commit has been applied to a state machine and closed it may
be removed from the log during minor or major compaction.public static final Compaction.Mode SEQUENTIAL
SEQUENTIAL compaction mode retains the command in the log until it has been stored and
applied on all servers in the cluster. Once the commit has been applied to a state machine and closed,
it may be removed from the log only during major compaction to ensure that all prior completed
commits are removed first.public static final Compaction.Mode EXPIRING
EXPIRING compaction mode is an alias of the SEQUENTIAL mode. Expiring entries are
retained in the log until stored and applied on all servers. Once the commit has been applied to a state
machine and closed, it may be removed from the log only during major compaction to ensure that
all prior completed commits are removed first.public static final Compaction.Mode TOMBSTONE
TOMBSTONE compaction mode is an alias of the SEQUENTIAL mode. Tombstone entries are
retained in the log until stored and applied on all servers. Once the commit has been applied to a state
machine and closed, it may be removed from the log only during major compaction to ensure that
all prior completed commits are removed first.public static Compaction.Mode[] values()
for (Compaction.Mode c : Compaction.Mode.values()) System.out.println(c);
public static Compaction.Mode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2013–2016. All rights reserved.