public interface RpcRequest extends Request
Request.| Modifier and Type | Method and Description |
|---|---|
String |
method()
Returns the method name.
|
static RpcRequest |
of(Class<?> serviceType,
String method)
Creates a new instance with no parameter.
|
static RpcRequest |
of(Class<?> serviceType,
String method,
Iterable<?> params)
Creates a new instance with the specified parameters.
|
static RpcRequest |
of(Class<?> serviceType,
String method,
Object... params)
Creates a new instance with the specified parameters.
|
static RpcRequest |
of(Class<?> serviceType,
String method,
Object parameter)
Creates a new instance with a single parameter.
|
List<Object> |
params()
Returns the parameters.
|
Class<?> |
serviceType()
Returns the type of the service this
RpcRequest is called upon. |
static RpcRequest of(Class<?> serviceType, String method)
static RpcRequest of(Class<?> serviceType, String method, Object parameter)
static RpcRequest of(Class<?> serviceType, String method, Iterable<?> params)
static RpcRequest of(Class<?> serviceType, String method, Object... params)
Class<?> serviceType()
RpcRequest is called upon.String method()
Copyright © 2020 LeanCloud. All rights reserved.