Package io.hekate.rpc

Interface RpcRequest


  • public interface RpcRequest
    RPC request for load balancing.
    See Also:
    RpcLoadBalancer
    • Method Detail

      • rpcInterface

        Class<?> rpcInterface()
        Returns the RPC interface.
        Returns:
        RPC interface.
      • rpcVersion

        int rpcVersion()
        Returns the RPC interface version.
        Returns:
        RPC interface version.
        See Also:
        Rpc.version()
      • method

        Method method()
        Returns the RPC method.
        Returns:
        Method.
        See Also:
        args()
      • args

        Object[] args()
        Returns arguments of this RPC request.
        Returns:
        Arguments or null if method doesn't have any arguments.
        See Also:
        hasArgs(), method()
      • hasArgs

        boolean hasArgs()
        Returns true if RPC request has arguments.
        Returns:
        true if RPC request has arguments.
        See Also:
        args()