public static class PrimaryBackupServer.Builder extends java.lang.Object implements Builder<PrimaryBackupServer>
| Constructor and Description |
|---|
Builder() |
public PrimaryBackupServer.Builder withServerName(java.lang.String serverName)
serverName - The server name.java.lang.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 typesjava.lang.NullPointerException - 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 modeljava.lang.NullPointerException - if the thread model is nullpublic PrimaryBackupServer.Builder withThreadPoolSize(int threadPoolSize)
threadPoolSize - The client thread pool size.java.lang.IllegalArgumentException - if the thread pool size is not positivepublic PrimaryBackupServer.Builder withThreadContextFactory(io.atomix.utils.concurrent.ThreadContextFactory threadContextFactory)
threadContextFactory - the client thread context factoryjava.lang.NullPointerException - if the factory is nullpublic PrimaryBackupServer build()
build in interface Builder<PrimaryBackupServer>Copyright © 2013-2018. All Rights Reserved.