| Package | Description |
|---|---|
| io.atomix.protocols.raft.protocol |
RaftRequest and RaftResponse
implementations for all client-server communication. |
| io.atomix.protocols.raft.proxy |
Facilitates modification of a Raft state machine via proxy.
|
| io.atomix.protocols.raft.session |
Interfaces for managing client sessions on a Raft server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RaftClientProtocol.registerPublishListener(SessionId sessionId,
Consumer<PublishRequest> listener,
Executor executor)
Registers a publish request listener.
|
void |
RaftServerProtocol.registerResetListener(SessionId sessionId,
Consumer<ResetRequest> listener,
Executor executor)
Registers a reset request listener.
|
void |
RaftClientProtocol.unregisterPublishListener(SessionId sessionId)
Unregisters the publish request listener for the given session.
|
void |
RaftServerProtocol.unregisterResetListener(SessionId sessionId)
Unregisters the given reset request listener.
|
| Modifier and Type | Method and Description |
|---|---|
SessionId |
RaftProxyExecutor.sessionId()
Returns the proxy session identifier.
|
| Modifier and Type | Method and Description |
|---|---|
static SessionId |
SessionId.from(long id)
Returns a new session ID from the given identifier.
|
SessionId |
RaftSessionMetadata.sessionId()
Returns the globally unique session identifier.
|
SessionId |
RaftSession.sessionId()
Returns the session identifier.
|
Copyright © 2013–2017. All rights reserved.