| Package | Description |
|---|---|
| io.atomix.protocols.raft |
Provides classes and interfaces for managing Raft clients and servers.
|
| Modifier and Type | Method and Description |
|---|---|
static RaftServer.Builder |
RaftServer.builder()
Returns a new Raft server builder using the default host:port.
|
static RaftServer.Builder |
RaftServer.builder(MemberId localMemberId)
Returns a new Raft server builder.
|
RaftServer.Builder |
RaftServer.Builder.withElectionTimeout(java.time.Duration electionTimeout)
Sets the Raft election timeout, returning the Raft configuration for method chaining.
|
RaftServer.Builder |
RaftServer.Builder.withHeartbeatInterval(java.time.Duration heartbeatInterval)
Sets the Raft heartbeat interval, returning the Raft configuration for method chaining.
|
RaftServer.Builder |
RaftServer.Builder.withMembershipService(ClusterMembershipService membershipService)
Sets the cluster membership service.
|
RaftServer.Builder |
RaftServer.Builder.withName(java.lang.String name)
Sets the server name.
|
RaftServer.Builder |
RaftServer.Builder.withPrimitiveTypes(PrimitiveTypeRegistry primitiveTypes)
Sets the primitive types.
|
RaftServer.Builder |
RaftServer.Builder.withProtocol(io.atomix.protocols.raft.protocol.RaftServerProtocol protocol)
Sets the server protocol.
|
RaftServer.Builder |
RaftServer.Builder.withSessionTimeout(java.time.Duration sessionTimeout)
Sets the Raft session timeout, returning the Raft configuration for method chaining.
|
RaftServer.Builder |
RaftServer.Builder.withStorage(io.atomix.protocols.raft.storage.RaftStorage storage)
Sets the storage module.
|
RaftServer.Builder |
RaftServer.Builder.withThreadContextFactory(io.atomix.utils.concurrent.ThreadContextFactory threadContextFactory)
Sets the client thread context factory.
|
RaftServer.Builder |
RaftServer.Builder.withThreadModel(io.atomix.utils.concurrent.ThreadModel threadModel)
Sets the server thread model.
|
RaftServer.Builder |
RaftServer.Builder.withThreadPoolSize(int threadPoolSize)
Sets the server thread pool size.
|
Copyright © 2013-2019. All Rights Reserved.