public static class PrimaryBackupClient.Builder extends java.lang.Object implements Builder<PrimaryBackupClient>
| Constructor and Description |
|---|
Builder() |
public PrimaryBackupClient.Builder withClientName(java.lang.String clientName)
clientName - The client name.java.lang.NullPointerException - if clientName is nullpublic PrimaryBackupClient.Builder withPartitionId(PartitionId partitionId)
partitionId - the client partition IDpublic PrimaryBackupClient.Builder withMembershipService(ClusterMembershipService membershipService)
membershipService - the cluster membership servicepublic PrimaryBackupClient.Builder withProtocol(io.atomix.protocols.backup.protocol.PrimaryBackupClientProtocol protocol)
protocol - the client protocolpublic PrimaryBackupClient.Builder withPrimaryElection(PrimaryElection primaryElection)
primaryElection - the primary electionpublic PrimaryBackupClient.Builder withSessionIdProvider(SessionIdService sessionIdService)
sessionIdService - the session ID providerpublic PrimaryBackupClient.Builder withThreadModel(io.atomix.utils.concurrent.ThreadModel threadModel)
threadModel - the client thread modeljava.lang.NullPointerException - if the thread model is nullpublic PrimaryBackupClient.Builder withThreadPoolSize(int threadPoolSize)
threadPoolSize - The client thread pool size.java.lang.IllegalArgumentException - if the thread pool size is not positivepublic PrimaryBackupClient.Builder withThreadContextFactory(io.atomix.utils.concurrent.ThreadContextFactory threadContextFactory)
threadContextFactory - the client thread context factoryjava.lang.NullPointerException - if the factory is nullpublic PrimaryBackupClient build()
build in interface Builder<PrimaryBackupClient>Copyright © 2013-2019. All Rights Reserved.