Package | Description |
---|---|
org.apache.hadoop.io.retry |
A mechanism for selectively retrying methods that throw exceptions under
certain circumstances.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultFailoverProxyProvider<T>
An implementation of
FailoverProxyProvider which does nothing in the
event of failover, and always returns the same proxy object. |
Modifier and Type | Method and Description |
---|---|
static <T> Object |
RetryProxy.create(Class<T> iface,
FailoverProxyProvider<T> proxyProvider,
Map<String,RetryPolicy> methodNameToPolicyMap,
RetryPolicy defaultPolicy)
Create a proxy for an interface of implementations of that interface using
the given
FailoverProxyProvider and the a set of retry policies
specified by method name. |
static <T> Object |
RetryProxy.create(Class<T> iface,
FailoverProxyProvider<T> proxyProvider,
RetryPolicy retryPolicy)
Create a proxy for an interface of implementations of that interface using
the given
FailoverProxyProvider and the same retry policy for each
method in the interface. |
Copyright © 2017 Apache Software Foundation. All Rights Reserved.