Class ZooKeeperEndpointGroupBuilder
java.lang.Object
com.linecorp.armeria.common.zookeeper.AbstractCuratorFrameworkBuilder<ZooKeeperEndpointGroupBuilder>
com.linecorp.armeria.client.zookeeper.ZooKeeperEndpointGroupBuilder
- All Implemented Interfaces:
DynamicEndpointGroupSetters<ZooKeeperEndpointGroupBuilder>
public final class ZooKeeperEndpointGroupBuilder
extends AbstractCuratorFrameworkBuilder<ZooKeeperEndpointGroupBuilder>
implements DynamicEndpointGroupSetters<ZooKeeperEndpointGroupBuilder>
Builds a
ZooKeeperEndpointGroup
.-
Method Summary
Modifier and TypeMethodDescriptionallowEmptyEndpoints
(boolean allowEmptyEndpoints) Sets whether to allow an emptyEndpoint
list.build()
Returns a newly-createdZooKeeperEndpointGroup
based on the properties set so far.selectionStrategy
(EndpointSelectionStrategy selectionStrategy) Sets theEndpointSelectionStrategy
of theZooKeeperEndpointGroup
.selectionTimeout
(Duration selectionTimeout) Sets the timeout to wait until a successfulEndpoint
selection.selectionTimeoutMillis
(long selectionTimeoutMillis) Sets the timeout to wait until a successfulEndpoint
selection.Methods inherited from class com.linecorp.armeria.common.zookeeper.AbstractCuratorFrameworkBuilder
buildCuratorFramework, connectTimeout, connectTimeoutMillis, customizer, isUserSpecifiedCuratorFramework, sessionTimeout, sessionTimeoutMillis, znodePath
-
Method Details
-
selectionStrategy
Sets theEndpointSelectionStrategy
of theZooKeeperEndpointGroup
. -
build
Returns a newly-createdZooKeeperEndpointGroup
based on the properties set so far. -
allowEmptyEndpoints
Description copied from interface:DynamicEndpointGroupSetters
- Specified by:
allowEmptyEndpoints
in interfaceDynamicEndpointGroupSetters<ZooKeeperEndpointGroupBuilder>
-
selectionTimeout
Sets the timeout to wait until a successfulEndpoint
selection.Duration.ZERO
disables the timeout. If unspecified,Flags.defaultResponseTimeoutMillis()
is used by default.- Specified by:
selectionTimeout
in interfaceDynamicEndpointGroupSetters<ZooKeeperEndpointGroupBuilder>
-
selectionTimeoutMillis
Sets the timeout to wait until a successfulEndpoint
selection.0
disables the timeout. If unspecified,Flags.defaultResponseTimeoutMillis()
is used by default.- Specified by:
selectionTimeoutMillis
in interfaceDynamicEndpointGroupSetters<ZooKeeperEndpointGroupBuilder>
-