Interface RpcRequest

All Superinterfaces:
Request

public interface RpcRequest
extends Request
An RPC Request.
  • Method Details

    • of

      static RpcRequest of​(Class<?> serviceType, String method)
      Creates a new instance with no parameter.
    • of

      static RpcRequest of​(Class<?> serviceType, String method, @Nullable Object parameter)
      Creates a new instance with a single parameter.
    • of

      static RpcRequest of​(Class<?> serviceType, String method, Iterable<?> params)
      Creates a new instance with the specified parameters.
    • of

      static RpcRequest of​(Class<?> serviceType, @Nullable String serviceName, String method, Iterable<?> params)
      Creates a new instance with the specified parameters.
    • of

      static RpcRequest of​(Class<?> serviceType, String method, Object... params)
      Creates a new instance with the specified parameters.
    • serviceType

      Class<?> serviceType()
      Returns the type of the service this RpcRequest is called upon.
    • serviceName

      default String serviceName()
      Returns the name of the service this RpcRequest is called upon.
    • method

      String method()
      Returns the method name.
    • params

      List<Object> params()
      Returns the parameters.