| Package | Description |
|---|---|
| io.atomix.protocols.raft.service |
Provides classes for managing Raft-based primitive services.
|
| io.atomix.protocols.raft.session |
Provides a
Session implementation for the Raft consensus protocol. |
| Modifier and Type | Method and Description |
|---|---|
void |
RaftServiceContext.closeSession(long index,
long timestamp,
RaftSession session,
boolean expired)
Unregister the given session.
|
io.atomix.protocols.raft.impl.OperationResult |
RaftServiceContext.executeCommand(long index,
long sequence,
long timestamp,
RaftSession session,
PrimitiveOperation operation)
Executes the given command on the state machine.
|
java.util.concurrent.CompletableFuture<io.atomix.protocols.raft.impl.OperationResult> |
RaftServiceContext.executeQuery(long index,
long sequence,
long timestamp,
RaftSession session,
PrimitiveOperation operation)
Executes the given query on the state machine.
|
boolean |
RaftServiceContext.keepAlive(long index,
long timestamp,
RaftSession session,
long commandSequence,
long eventIndex)
Keeps the given session alive.
|
long |
RaftServiceContext.openSession(long index,
long timestamp,
RaftSession session)
Registers the given session.
|
| Modifier and Type | Method and Description |
|---|---|
RaftSession |
RaftSessionRegistry.addSession(RaftSession session)
Adds a session.
|
RaftSession |
RaftSessionRegistry.getSession(long sessionId)
Gets a session by session ID.
|
RaftSession |
RaftSessionRegistry.getSession(SessionId sessionId)
Gets a session by session ID.
|
RaftSession |
RaftSessionRegistry.removeSession(SessionId sessionId)
Closes a session.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<RaftSession> |
RaftSessionRegistry.getSessions()
Returns the collection of registered sessions.
|
java.util.Collection<RaftSession> |
RaftSessionRegistry.getSessions(PrimitiveId primitiveId)
Returns a set of sessions associated with the given service.
|
| Modifier and Type | Method and Description |
|---|---|
RaftSession |
RaftSessionRegistry.addSession(RaftSession session)
Adds a session.
|
Copyright © 2013-2019. All Rights Reserved.