| Package | Description |
|---|---|
| io.atomix.protocols.raft.protocol |
RaftRequest and RaftResponse
implementations for all client-server communication. |
| io.atomix.protocols.raft.roles |
Internal classes that manage Raft server state.
|
| Modifier and Type | Method and Description |
|---|---|
KeepAliveResponse |
KeepAliveResponse.Builder.build() |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<KeepAliveResponse> |
RaftServerProtocol.keepAlive(MemberId memberId,
KeepAliveRequest request)
Sends a keep alive request to the given node.
|
CompletableFuture<KeepAliveResponse> |
RaftClientProtocol.keepAlive(MemberId memberId,
KeepAliveRequest request)
Sends a keep alive request to the given node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RaftServerProtocol.registerKeepAliveHandler(Function<KeepAliveRequest,CompletableFuture<KeepAliveResponse>> handler)
Registers a keep alive request callback.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<KeepAliveResponse> |
RaftRole.onKeepAlive(KeepAliveRequest request)
Handles a keep alive request.
|
CompletableFuture<KeepAliveResponse> |
PassiveRole.onKeepAlive(KeepAliveRequest request) |
CompletableFuture<KeepAliveResponse> |
LeaderRole.onKeepAlive(KeepAliveRequest request) |
CompletableFuture<KeepAliveResponse> |
InactiveRole.onKeepAlive(KeepAliveRequest request) |
Copyright © 2013–2017. All rights reserved.