java.io.Closeable, java.lang.AutoCloseable, java.lang.reflect.InvocationHandler, RpcInvocationHandlerLossyRetryInvocationHandler@Private public class RetryInvocationHandler<T> extends java.lang.Object implements RpcInvocationHandler
RpcInvocationHandler which supports client side retry .| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
|
static java.lang.ThreadLocal<java.lang.Boolean> |
SET_CALL_ID_FOR_TEST |
| Modifier | Constructor | Description |
|---|---|---|
protected |
RetryInvocationHandler(FailoverProxyProvider<T> proxyProvider,
RetryPolicy retryPolicy) |
|
protected |
RetryInvocationHandler(FailoverProxyProvider<T> proxyProvider,
RetryPolicy defaultPolicy,
java.util.Map<java.lang.String,RetryPolicy> methodNameToPolicyMap) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
Client.ConnectionId |
getConnectionId() |
Returns the connection id associated with the InvocationHandler instance.
|
FailoverProxyProvider<T> |
getProxyProvider() |
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
|
protected java.lang.Object |
invokeMethod(java.lang.reflect.Method method,
java.lang.Object[] args) |
public static final org.slf4j.Logger LOG
@VisibleForTesting public static final java.lang.ThreadLocal<java.lang.Boolean> SET_CALL_ID_FOR_TEST
protected RetryInvocationHandler(FailoverProxyProvider<T> proxyProvider, RetryPolicy retryPolicy)
protected RetryInvocationHandler(FailoverProxyProvider<T> proxyProvider, RetryPolicy defaultPolicy, java.util.Map<java.lang.String,RetryPolicy> methodNameToPolicyMap)
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwableprotected java.lang.Object invokeMethod(java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
java.lang.Throwablepublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionpublic Client.ConnectionId getConnectionId()
RpcInvocationHandlergetConnectionId in interface RpcInvocationHandler@VisibleForTesting public FailoverProxyProvider<T> getProxyProvider()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.