| Package | Description |
|---|---|
| io.atomix.copycat.server |
Standalone, feature-complete implementation of the Raft consensus algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
static CopycatServer.Builder |
CopycatServer.builder()
Returns a new Copycat server builder using the default host:port.
|
static CopycatServer.Builder |
CopycatServer.builder(Address address)
Returns a new Copycat server builder.
|
static CopycatServer.Builder |
CopycatServer.builder(Address clientAddress,
Address serverAddress)
Returns a new Copycat server builder.
|
CopycatServer.Builder |
CopycatServer.Builder.withClientTransport(Transport transport)
Sets the client transport.
|
CopycatServer.Builder |
CopycatServer.Builder.withElectionTimeout(Duration electionTimeout)
Sets the Raft election timeout, returning the Raft configuration for method chaining.
|
CopycatServer.Builder |
CopycatServer.Builder.withGlobalSuspendTimeout(Duration globalSuspendTimeout)
Sets the timeout after which suspended global replication will resume and force a partitioned follower
to truncate its log once the partition heals.
|
CopycatServer.Builder |
CopycatServer.Builder.withHeartbeatInterval(Duration heartbeatInterval)
Sets the Raft heartbeat interval, returning the Raft configuration for method chaining.
|
CopycatServer.Builder |
CopycatServer.Builder.withName(String name)
Sets the server name.
|
CopycatServer.Builder |
CopycatServer.Builder.withSerializer(Serializer serializer)
Sets the Raft serializer.
|
CopycatServer.Builder |
CopycatServer.Builder.withServerTransport(Transport transport)
Sets the server transport.
|
CopycatServer.Builder |
CopycatServer.Builder.withSessionTimeout(Duration sessionTimeout)
Sets the Raft session timeout, returning the Raft configuration for method chaining.
|
CopycatServer.Builder |
CopycatServer.Builder.withStateMachine(Supplier<StateMachine> factory)
Sets the Raft state machine factory.
|
CopycatServer.Builder |
CopycatServer.Builder.withStorage(Storage storage)
Sets the storage module.
|
CopycatServer.Builder |
CopycatServer.Builder.withTransport(Transport transport)
Sets the client and server transport.
|
CopycatServer.Builder |
CopycatServer.Builder.withType(Member.Type type)
Sets the initial server member type.
|
Copyright © 2013–2016. All rights reserved.