Class DynamicEndpointGroupBuilder
java.lang.Object
com.linecorp.armeria.client.endpoint.AbstractDynamicEndpointGroupBuilder
com.linecorp.armeria.client.endpoint.DynamicEndpointGroupBuilder
- All Implemented Interfaces:
DynamicEndpointGroupSetters
@UnstableApi
public final class DynamicEndpointGroupBuilder
extends AbstractDynamicEndpointGroupBuilder
Builds a new
DynamicEndpointGroup
.-
Method Summary
Modifier and TypeMethodDescriptionallowEmptyEndpoints
(boolean allowEmptyEndpoints) Sets whether to allow an emptyEndpoint
list.build()
Returns a newly createdDynamicEndpointGroup
with the properties configured so far.selectionStrategy
(EndpointSelectionStrategy selectionStrategy) Sets theEndpointSelectionStrategy
of theDynamicEndpointGroup
.Methods inherited from class com.linecorp.armeria.client.endpoint.AbstractDynamicEndpointGroupBuilder
shouldAllowEmptyEndpoints
-
Method Details
-
selectionStrategy
Sets theEndpointSelectionStrategy
of theDynamicEndpointGroup
. If unspecified,EndpointSelectionStrategy.weightedRoundRobin()
is used. -
allowEmptyEndpoints
Description copied from interface:DynamicEndpointGroupSetters
- Specified by:
allowEmptyEndpoints
in interfaceDynamicEndpointGroupSetters
- Overrides:
allowEmptyEndpoints
in classAbstractDynamicEndpointGroupBuilder
-
build
Returns a newly createdDynamicEndpointGroup
with the properties configured so far.
-