public class ConfigureRequest extends AbstractRaftRequest
Configuration requests are special requests that aid in installing committed configurations to passive and reserve members of the cluster. Prior to the start of replication from an active member to a passive or reserve member, the active member must update the passive/reserve member's configuration to ensure it is in the expected state.
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigureRequest.Builder
Heartbeat request builder.
|
| Constructor and Description |
|---|
ConfigureRequest(long term,
String leader,
long index,
long timestamp,
Collection<RaftMember> members) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
int |
hashCode() |
long |
index()
Returns the configuration index.
|
MemberId |
leader()
Returns the requesting leader address.
|
Collection<RaftMember> |
members()
Returns the configuration members.
|
static ConfigureRequest.Builder |
newBuilder()
Returns a new configuration request builder.
|
long |
term()
Returns the requesting node's current term.
|
long |
timestamp()
Returns the configuration timestamp.
|
String |
toString() |
public ConfigureRequest(long term,
String leader,
long index,
long timestamp,
Collection<RaftMember> members)
public static ConfigureRequest.Builder newBuilder()
public long term()
public MemberId leader()
public long index()
public long timestamp()
public Collection<RaftMember> members()
Copyright © 2013–2017. All rights reserved.