| Package | Description |
|---|---|
| io.atomix.protocols.raft.protocol |
RaftRequest and RaftResponse
implementations for all client-server communication. |
| io.atomix.protocols.raft.storage.log | |
| io.atomix.protocols.raft.storage.log.entry |
RaftLogEntry implementations used internally to replicate
state changes, sessions, and configuration changes in the cluster. |
| Modifier and Type | Method and Description |
|---|---|
List<RaftLogEntry> |
AppendRequest.entries()
Returns the log entries to append.
|
| Modifier and Type | Method and Description |
|---|---|
AppendRequest.Builder |
AppendRequest.Builder.addEntry(RaftLogEntry entry)
Adds an entry to the request.
|
AppendRequest.Builder |
AppendRequest.Builder.withEntries(RaftLogEntry... entries)
Sets the request entries.
|
| Modifier and Type | Method and Description |
|---|---|
AppendRequest.Builder |
AppendRequest.Builder.withEntries(List<RaftLogEntry> entries)
Sets the request entries.
|
| Constructor and Description |
|---|
AppendRequest(long term,
String leader,
long prevLogIndex,
long prevLogTerm,
List<RaftLogEntry> entries,
long commitIndex) |
| Constructor and Description |
|---|
RaftLogReader(io.atomix.storage.journal.SegmentedJournalReader<RaftLogEntry> reader,
RaftLog log,
RaftLogReader.Mode mode) |
RaftLogWriter(io.atomix.storage.journal.SegmentedJournalWriter<RaftLogEntry> writer,
RaftLog log) |
| Modifier and Type | Class and Description |
|---|---|
class |
CloseSessionEntry
Close session entry.
|
class |
CommandEntry
Stores a state machine command.
|
class |
ConfigurationEntry
Stores a cluster configuration.
|
class |
InitializeEntry
Indicates a leader change has occurred.
|
class |
KeepAliveEntry
Stores a client keep-alive request.
|
class |
MetadataEntry
Metadata entry.
|
class |
OpenSessionEntry
Open session entry.
|
class |
OperationEntry
Stores a state machine operation.
|
class |
QueryEntry
Represents a state machine query.
|
class |
SessionEntry
Base class for session-related entries.
|
class |
TimestampedEntry
Base class for timestamped entries.
|
Copyright © 2013–2017. All rights reserved.