Interface DynamicEndpointGroupSetters
- All Known Implementing Classes:
AbstractDynamicEndpointGroupBuilder
,AbstractHealthCheckedEndpointGroupBuilder
,ConsulEndpointGroupBuilder
,DnsAddressEndpointGroupBuilder
,DnsServiceEndpointGroupBuilder
,DnsTextEndpointGroupBuilder
,DynamicEndpointGroupBuilder
,EurekaEndpointGroupBuilder
,HealthCheckedEndpointGroupBuilder
,ZooKeeperEndpointGroupBuilder
Sets properties for building
DynamicEndpointGroup
.-
Method Summary
Modifier and TypeMethodDescriptionallowEmptyEndpoints
(boolean allowEmptyEndpoints) Sets whether to allow an emptyEndpoint
list.default DynamicEndpointGroupSetters
selectionTimeout
(Duration selectionTimeout) Sets the timeout to wait until a successfulEndpoint
selection.selectionTimeoutMillis
(long selectionTimeoutMillis) Sets the timeout to wait until a successfulEndpoint
selection.
-
Method Details
-
allowEmptyEndpoints
-
selectionTimeout
Sets the timeout to wait until a successfulEndpoint
selection.Duration.ZERO
disables the timeout. If unspecified,Flags.defaultConnectTimeoutMillis()
is used by default. -
selectionTimeoutMillis
Sets the timeout to wait until a successfulEndpoint
selection.0
disables the timeout. If unspecified,Flags.defaultConnectTimeoutMillis()
is used by default.
-