| 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 |
|---|---|
List<RaftEvent> |
PublishRequest.events()
Returns the request events.
|
| Modifier and Type | Method and Description |
|---|---|
PublishRequest.Builder |
PublishRequest.Builder.withEvents(RaftEvent... events)
Sets the request events.
|
| Modifier and Type | Method and Description |
|---|---|
PublishRequest.Builder |
PublishRequest.Builder.withEvents(List<RaftEvent> events)
Sets the request events.
|
| Constructor and Description |
|---|
PublishRequest(long session,
long eventIndex,
long previousIndex,
List<RaftEvent> events) |
| Modifier and Type | Method and Description |
|---|---|
void |
RaftProxyExecutor.addEventListener(Consumer<RaftEvent> listener)
Adds a session event listener.
|
void |
RaftProxyExecutor.removeEventListener(Consumer<RaftEvent> listener)
Removes a session event listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RaftSession.publish(RaftEvent event)
Publishes an event to the session.
|
Copyright © 2013–2017. All rights reserved.