public static class PrimaryBackupServer.Builder extends Object implements io.atomix.utils.Builder<PrimaryBackupServer>
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PrimaryBackupServer |
build() |
PrimaryBackupServer.Builder |
withMemberGroupProvider(io.atomix.primitive.partition.MemberGroupProvider memberGroupProvider)
Sets the member group provider.
|
PrimaryBackupServer.Builder |
withMembershipService(io.atomix.cluster.ClusterMembershipService membershipService)
Sets the cluster membership service.
|
PrimaryBackupServer.Builder |
withPrimaryElection(io.atomix.primitive.partition.PrimaryElection primaryElection)
Sets the primary election.
|
PrimaryBackupServer.Builder |
withPrimitiveTypes(io.atomix.primitive.PrimitiveTypeRegistry primitiveTypes)
Sets the primitive types.
|
PrimaryBackupServer.Builder |
withProtocol(io.atomix.protocols.backup.protocol.PrimaryBackupServerProtocol protocol)
Sets the protocol.
|
PrimaryBackupServer.Builder |
withServerName(String serverName)
Sets the server name.
|
PrimaryBackupServer.Builder |
withThreadContextFactory(io.atomix.utils.concurrent.ThreadContextFactory threadContextFactory)
Sets the client thread context factory.
|
PrimaryBackupServer.Builder |
withThreadModel(io.atomix.utils.concurrent.ThreadModel threadModel)
Sets the client thread model.
|
PrimaryBackupServer.Builder |
withThreadPoolSize(int threadPoolSize)
Sets the client thread pool size.
|
public PrimaryBackupServer.Builder withServerName(String serverName)
serverName - The server name.NullPointerException - if serverName is nullpublic PrimaryBackupServer.Builder withMembershipService(io.atomix.cluster.ClusterMembershipService membershipService)
membershipService - the cluster membership servicepublic PrimaryBackupServer.Builder withProtocol(io.atomix.protocols.backup.protocol.PrimaryBackupServerProtocol protocol)
protocol - the protocolpublic PrimaryBackupServer.Builder withPrimaryElection(io.atomix.primitive.partition.PrimaryElection primaryElection)
primaryElection - the primary electionpublic PrimaryBackupServer.Builder withPrimitiveTypes(io.atomix.primitive.PrimitiveTypeRegistry primitiveTypes)
primitiveTypes - the primitive typesNullPointerException - if the primitiveTypes argument is nullpublic PrimaryBackupServer.Builder withMemberGroupProvider(io.atomix.primitive.partition.MemberGroupProvider memberGroupProvider)
memberGroupProvider - the member group providerpublic PrimaryBackupServer.Builder withThreadModel(io.atomix.utils.concurrent.ThreadModel threadModel)
threadModel - the client thread modelNullPointerException - if the thread model is nullpublic PrimaryBackupServer.Builder withThreadPoolSize(int threadPoolSize)
threadPoolSize - The client thread pool size.IllegalArgumentException - if the thread pool size is not positivepublic PrimaryBackupServer.Builder withThreadContextFactory(io.atomix.utils.concurrent.ThreadContextFactory threadContextFactory)
threadContextFactory - the client thread context factoryNullPointerException - if the factory is nullpublic PrimaryBackupServer build()
build in interface io.atomix.utils.Builder<PrimaryBackupServer>Copyright © 2013–2018. All rights reserved.