public static class PrimaryBackupServer.Builder extends Object implements Builder<PrimaryBackupServer>
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PrimaryBackupServer |
build()
Builds the object.
|
PrimaryBackupServer.Builder |
withMemberGroupProvider(MemberGroupProvider memberGroupProvider)
Sets the member group provider.
|
PrimaryBackupServer.Builder |
withMembershipService(ClusterMembershipService membershipService)
Sets the cluster membership service.
|
PrimaryBackupServer.Builder |
withPrimaryElection(PrimaryElection primaryElection)
Sets the primary election.
|
PrimaryBackupServer.Builder |
withPrimitiveTypes(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(ClusterMembershipService membershipService)
membershipService - the cluster membership servicepublic PrimaryBackupServer.Builder withProtocol(io.atomix.protocols.backup.protocol.PrimaryBackupServerProtocol protocol)
protocol - the protocolpublic PrimaryBackupServer.Builder withPrimaryElection(PrimaryElection primaryElection)
primaryElection - the primary electionpublic PrimaryBackupServer.Builder withPrimitiveTypes(PrimitiveTypeRegistry primitiveTypes)
primitiveTypes - the primitive typesNullPointerException - if the primitiveTypes argument is nullpublic PrimaryBackupServer.Builder withMemberGroupProvider(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()
BuilderThe returned object may be a new instance of the built class or a recycled instance, depending on the semantics of the builder implementation. Users should never assume that a builder allocates a new instance.
build in interface Builder<PrimaryBackupServer>Copyright © 2013–2018. All rights reserved.