public final class AbstractClientProvider.TimeLimitEndpointStrategy extends Object implements AbstractClientProvider.EndpointStrategy
AbstractClientProvider.EndpointStrategy that make sure it picks an endpoint within the given
timeout limit.| Constructor and Description |
|---|
AbstractClientProvider.TimeLimitEndpointStrategy(AbstractClientProvider.EndpointStrategy delegate,
long timeout,
TimeUnit timeoutUnit) |
public AbstractClientProvider.TimeLimitEndpointStrategy(AbstractClientProvider.EndpointStrategy delegate, long timeout, TimeUnit timeoutUnit)
public org.apache.twill.discovery.Discoverable pick()
AbstractClientProvider.EndpointStrategyDiscoverable using its strategy.pick in interface AbstractClientProvider.EndpointStrategyDiscoverable based on the stragegy or null if no endpoint can be found.Copyright © 2017 The Apache Software Foundation. All rights reserved.