Class RefetchOnExceptionServiceProxy

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler

    public class RefetchOnExceptionServiceProxy
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    A proxy for services that refetches the service whenever select exceptions occur. Upon registration, the service indicates the exceptions that will trigger a refetch. Used for clients which have the StickyClient annotation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
      java.lang.Object target()  
      • Methods inherited from class java.lang.Object

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

      • RefetchOnExceptionServiceProxy

        public RefetchOnExceptionServiceProxy​(java.lang.Class<?> clazz,
                                              org.apache.curator.x.discovery.ServiceInstance<AieServiceInfo> instance,
                                              java.lang.Object target)
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable
      • target

        public java.lang.Object target()