| 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 |
|---|---|
LeaveResponse |
LeaveResponse.Builder.build() |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<LeaveResponse> |
RaftServerProtocol.leave(MemberId memberId,
LeaveRequest request)
Sends a leave request to the given node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RaftServerProtocol.registerLeaveHandler(Function<LeaveRequest,CompletableFuture<LeaveResponse>> handler)
Registers a leave request callback.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<LeaveResponse> |
RaftRole.onLeave(LeaveRequest request)
Handles a leave request.
|
CompletableFuture<LeaveResponse> |
PassiveRole.onLeave(LeaveRequest request) |
CompletableFuture<LeaveResponse> |
LeaderRole.onLeave(LeaveRequest request) |
CompletableFuture<LeaveResponse> |
InactiveRole.onLeave(LeaveRequest request) |
Copyright © 2013–2017. All rights reserved.