| Package | Description |
|---|---|
| io.atomix.protocols.raft |
Provides classes and interfaces for managing Raft clients and servers.
|
| Modifier and Type | Method and Description |
|---|---|
default CompletableFuture<RaftServer> |
RaftServer.bootstrap()
Bootstraps a single-node cluster.
|
CompletableFuture<RaftServer> |
RaftServer.bootstrap(Collection<io.atomix.cluster.MemberId> cluster)
Bootstraps the cluster using the provided cluster configuration.
|
default CompletableFuture<RaftServer> |
RaftServer.bootstrap(io.atomix.cluster.MemberId... members)
Bootstraps the cluster using the provided cluster configuration.
|
CompletableFuture<RaftServer> |
RaftServer.join(Collection<io.atomix.cluster.MemberId> members)
Joins the cluster.
|
default CompletableFuture<RaftServer> |
RaftServer.join(io.atomix.cluster.MemberId... members)
Joins the cluster.
|
CompletableFuture<RaftServer> |
RaftServer.listen(Collection<io.atomix.cluster.MemberId> cluster)
Joins the cluster as a passive listener.
|
default CompletableFuture<RaftServer> |
RaftServer.listen(io.atomix.cluster.MemberId... cluster)
Joins the cluster as a passive listener.
|
CompletableFuture<RaftServer> |
RaftServer.promote()
Promotes the server to leader if possible.
|
Copyright © 2013–2018. All rights reserved.