ConnectionPoolSupport.@Deprecated public class TransparentPoolingInvocationHandler<T> extends AbstractInvocationHandler
AbstractInvocationHandler.MethodTranslator| Constructor and Description |
|---|
TransparentPoolingInvocationHandler(RedisConnectionPool<T> pool)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
RedisConnectionPool<T> |
getPool()
Deprecated.
|
protected Object |
handleInvocation(Object proxy,
Method method,
Object[] args)
Deprecated.
AbstractInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]) delegates to this method upon any method invocation on the proxy instance, except Object.equals(java.lang.Object),
Object.hashCode() and Object.toString(). |
equals, hashCode, invoke, toStringpublic TransparentPoolingInvocationHandler(RedisConnectionPool<T> pool)
protected Object handleInvocation(Object proxy, Method method, Object[] args) throws Throwable
AbstractInvocationHandlerAbstractInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]) delegates to this method upon any method invocation on the proxy instance, except Object.equals(java.lang.Object),
Object.hashCode() and Object.toString(). The result will be returned as the proxied method's return value.
Unlike AbstractInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]), args will never be null. When the method has no parameter, an empty array is passed in.
handleInvocation in class AbstractInvocationHandlerproxy - the proxy instance that the method was invoked onmethod - the Method instance corresponding to the interface method invoked on the proxy instance. The
declaring class of the Method object will be the interface that the method was declared in, which may be a
superinterface of the proxy interface that the proxy class inherits the method through.args - an array of objects containing the values of the arguments passed in the method invocation on the proxy
instance, or null if interface method takes no arguments. Arguments of primitive types are wrapped in
instances of the appropriate primitive wrapper class, such as java.lang.Integer or
java.lang.Boolean.Throwable - the exception to throw from the method invocation on the proxy instance.public RedisConnectionPool<T> getPool()
Copyright © 2018 lettuce.io. All rights reserved.