public class DefaultRpcRequest extends Object implements RpcRequest
RpcRequest implementation.| Constructor and Description |
|---|
DefaultRpcRequest(Class<?> serviceType,
String method)
Creates a new instance with no parameter.
|
DefaultRpcRequest(Class<?> serviceType,
String method,
Iterable<?> params)
Creates a new instance with the specified parameters.
|
DefaultRpcRequest(Class<?> serviceType,
String method,
Object... params)
Creates a new instance with the specified parameters.
|
DefaultRpcRequest(Class<?> serviceType,
String method,
Object parameter)
Creates a new instance with a single parameter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
method()
Returns the method name.
|
List<Object> |
params()
Returns the parameters.
|
Class<?> |
serviceType()
Returns the type of the service this
RpcRequest is called upon. |
protected String |
simpleServiceName()
Returns the simplified name of the
serviceType(). |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitof, of, of, ofpublic DefaultRpcRequest(Class<?> serviceType, String method)
public DefaultRpcRequest(Class<?> serviceType, String method, @Nullable Object parameter)
public DefaultRpcRequest(Class<?> serviceType, String method, Iterable<?> params)
public final Class<?> serviceType()
RpcRequestRpcRequest is called upon.serviceType in interface RpcRequestpublic final String method()
RpcRequestmethod in interface RpcRequestpublic final List<Object> params()
RpcRequestparams in interface RpcRequestprotected final String simpleServiceName()
serviceType().Copyright © 2020 LeanCloud. All rights reserved.