Class SyncThriftClientWithErrorHandler
- java.lang.Object
-
- org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler
-
- All Implemented Interfaces:
net.sf.cglib.proxy.Callback,net.sf.cglib.proxy.MethodInterceptor
public class SyncThriftClientWithErrorHandler extends java.lang.Object implements net.sf.cglib.proxy.MethodInterceptor
-
-
Constructor Summary
Constructors Constructor Description SyncThriftClientWithErrorHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectintercept(java.lang.Object o, java.lang.reflect.Method method, java.lang.Object[] objects, net.sf.cglib.proxy.MethodProxy methodProxy)static <V extends ThriftClient>
VnewErrorHandler(java.lang.Class<V> targetClass, java.lang.reflect.Constructor<V> constructor, java.lang.Object... args)Note: The caller needs to ensure that the constructor corresponds to the class, or the cast might fail.
-
-
-
Method Detail
-
newErrorHandler
public static <V extends ThriftClient> V newErrorHandler(java.lang.Class<V> targetClass, java.lang.reflect.Constructor<V> constructor, java.lang.Object... args)
Note: The caller needs to ensure that the constructor corresponds to the class, or the cast might fail.
-
intercept
public java.lang.Object intercept(java.lang.Object o, java.lang.reflect.Method method, java.lang.Object[] objects, net.sf.cglib.proxy.MethodProxy methodProxy) throws java.lang.Throwable- Specified by:
interceptin interfacenet.sf.cglib.proxy.MethodInterceptor- Throws:
java.lang.Throwable
-
-