public static class RaftFuzzTest.TestMember extends Object implements io.atomix.protocols.raft.cluster.RaftMember
| Constructor and Description |
|---|
TestMember(io.atomix.cluster.NodeId nodeId,
io.atomix.protocols.raft.cluster.RaftMember.Type type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTypeChangeListener(Consumer<io.atomix.protocols.raft.cluster.RaftMember.Type> listener) |
CompletableFuture<Void> |
demote() |
CompletableFuture<Void> |
demote(io.atomix.protocols.raft.cluster.RaftMember.Type type) |
Instant |
getLastUpdated() |
io.atomix.protocols.raft.cluster.RaftMember.Type |
getType() |
int |
hash() |
io.atomix.cluster.NodeId |
nodeId() |
CompletableFuture<Void> |
promote() |
CompletableFuture<Void> |
promote(io.atomix.protocols.raft.cluster.RaftMember.Type type) |
CompletableFuture<Void> |
remove() |
void |
removeTypeChangeListener(Consumer<io.atomix.protocols.raft.cluster.RaftMember.Type> listener) |
public TestMember(io.atomix.cluster.NodeId nodeId,
io.atomix.protocols.raft.cluster.RaftMember.Type type)
public io.atomix.cluster.NodeId nodeId()
nodeId in interface io.atomix.protocols.raft.cluster.RaftMemberpublic int hash()
hash in interface io.atomix.protocols.raft.cluster.RaftMemberpublic io.atomix.protocols.raft.cluster.RaftMember.Type getType()
getType in interface io.atomix.protocols.raft.cluster.RaftMemberpublic void addTypeChangeListener(Consumer<io.atomix.protocols.raft.cluster.RaftMember.Type> listener)
addTypeChangeListener in interface io.atomix.protocols.raft.cluster.RaftMemberpublic void removeTypeChangeListener(Consumer<io.atomix.protocols.raft.cluster.RaftMember.Type> listener)
removeTypeChangeListener in interface io.atomix.protocols.raft.cluster.RaftMemberpublic Instant getLastUpdated()
getLastUpdated in interface io.atomix.protocols.raft.cluster.RaftMemberpublic CompletableFuture<Void> promote()
promote in interface io.atomix.protocols.raft.cluster.RaftMemberpublic CompletableFuture<Void> promote(io.atomix.protocols.raft.cluster.RaftMember.Type type)
promote in interface io.atomix.protocols.raft.cluster.RaftMemberpublic CompletableFuture<Void> demote()
demote in interface io.atomix.protocols.raft.cluster.RaftMemberpublic CompletableFuture<Void> demote(io.atomix.protocols.raft.cluster.RaftMember.Type type)
demote in interface io.atomix.protocols.raft.cluster.RaftMemberpublic CompletableFuture<Void> remove()
remove in interface io.atomix.protocols.raft.cluster.RaftMemberCopyright © 2013–2018. All rights reserved.