Class DistributedLayer

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

    public final class DistributedLayer
    extends Layer
    This class is an interceptor component to make the distributed call.
    Author:
    javaito
    • Constructor Detail

      • DistributedLayer

        public DistributedLayer​(java.lang.String implName,
                                java.lang.Class<? extends LayerInterface> layerClass)
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
        Description copied from class: Layer
        This method intercepts the call to layer implementation and save some information about the thread behavior.
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Overrides:
        invoke in class Layer
        Parameters:
        proxy - Object to be called.
        method - Method to be called.
        args - Method to invoke the method.
        Returns:
        Return the value returned for the proxy method.