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.EndpointStrategy
Discoverable
using its strategy.pick
in interface AbstractClientProvider.EndpointStrategy
Discoverable
based on the stragegy or null
if no endpoint can be found.Copyright © 2016 The Apache Software Foundation. All rights reserved.