- All Implemented Interfaces:
- Closeable, AutoCloseable, org.apache.hadoop.io.retry.FailoverProxyProvider<T>
public class RequestHedgingProxyProvider<T>
extends ConfiguredFailoverProxyProvider<T>
A FailoverProxyProvider implementation that technically does not "failover"
per-se. It constructs a wrapper proxy that sends the request to ALL
underlying proxies simultaneously. It assumes the in an HA setup, there will
be only one Active, and the active should respond faster than any configured
standbys. Once it recieve a response from any one of the configred proxies,
outstanding requests to other proxies are immediately cancelled.