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