Package com.yahoo.jrt

Interface MethodHandler

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface MethodHandler

    Interface used to handle the invocation of a method.

    The Method class is used to register rpc methods. There are two ways rpc methods can be defined(bound); with this interface or with reflection. This choice is reflected by the two different constructors in the Method class.

    • Method Detail

      • invoke

        void invoke​(Request req)
        Method used to dispatch an rpc request.
        Parameters:
        req - the request