Package org.apache.hadoop.io.retry
Class LossyRetryInvocationHandler<T>
java.lang.Object
org.apache.hadoop.io.retry.RetryInvocationHandler<T>
org.apache.hadoop.io.retry.LossyRetryInvocationHandler<T>
- All Implemented Interfaces:
Closeable,AutoCloseable,InvocationHandler,RpcInvocationHandler
A dummy invocation handler extending RetryInvocationHandler. It drops the
first N number of responses. This invocation handler is only used for testing.
-
Field Summary
Fields inherited from class org.apache.hadoop.io.retry.RetryInvocationHandler
LOG, SET_CALL_ID_FOR_TEST -
Constructor Summary
ConstructorsConstructorDescriptionLossyRetryInvocationHandler(int numToDrop, FailoverProxyProvider<T> proxyProvider, RetryPolicy retryPolicy) -
Method Summary
Methods inherited from class org.apache.hadoop.io.retry.RetryInvocationHandler
close, getConnectionId, getProxyProvider
-
Constructor Details
-
LossyRetryInvocationHandler
public LossyRetryInvocationHandler(int numToDrop, FailoverProxyProvider<T> proxyProvider, RetryPolicy retryPolicy)
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Overrides:
invokein classRetryInvocationHandler<T>- Throws:
Throwable
-
invokeMethod
- Overrides:
invokeMethodin classRetryInvocationHandler<T>- Throws:
Throwable
-