Class ZooKeeperEndpointGroupBuilder
java.lang.Object
com.linecorp.armeria.client.zookeeper.ZooKeeperEndpointGroupBuilder
public final class ZooKeeperEndpointGroupBuilder extends Object
Builds a
ZooKeeperEndpointGroup
.-
Method Summary
Modifier and Type Method Description ZooKeeperEndpointGroup
build()
Returns a newZooKeeperEndpointGroup
created with the properties set so far.ZooKeeperEndpointGroupBuilder
codec(NodeValueCodec nodeValueCodec)
Sets theNodeValueCodec
of theZooKeeperEndpointGroup
.ZooKeeperEndpointGroupBuilder
customizer(Consumer<? super org.apache.curator.framework.CuratorFrameworkFactory.Builder> customizer)
Specifies theConsumer
that customizes theCuratorFramework
.ZooKeeperEndpointGroupBuilder
selectionStrategy(com.linecorp.armeria.client.endpoint.EndpointSelectionStrategy selectionStrategy)
Sets theEndpointSelectionStrategy
of theZooKeeperEndpointGroup
.
-
Method Details
-
selectionStrategy
public ZooKeeperEndpointGroupBuilder selectionStrategy(com.linecorp.armeria.client.endpoint.EndpointSelectionStrategy selectionStrategy)Sets theEndpointSelectionStrategy
of theZooKeeperEndpointGroup
. -
codec
Sets theNodeValueCodec
of theZooKeeperEndpointGroup
. -
customizer
public ZooKeeperEndpointGroupBuilder customizer(Consumer<? super org.apache.curator.framework.CuratorFrameworkFactory.Builder> customizer)Specifies theConsumer
that customizes theCuratorFramework
.- Throws:
IllegalStateException
- if this builder was created with an existingCuratorFramework
instance.
-
build
Returns a newZooKeeperEndpointGroup
created with the properties set so far.
-