Class 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object intercept​(java.lang.Object o, java.lang.reflect.Method method, java.lang.Object[] objects, net.sf.cglib.proxy.MethodProxy methodProxy)  
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SyncThriftClientWithErrorHandler

        public SyncThriftClientWithErrorHandler()
    • 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:
        intercept in interface net.sf.cglib.proxy.MethodInterceptor
        Throws:
        java.lang.Throwable