Package com.linecorp.armeria.common
Class DefaultRpcRequest
- java.lang.Object
-
- com.linecorp.armeria.common.DefaultRpcRequest
-
- All Implemented Interfaces:
Request
,RpcRequest
public class DefaultRpcRequest extends Object implements RpcRequest
DefaultRpcRequest
implementation.
-
-
Constructor Summary
Constructors Constructor 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 parameter)
Creates a new instance with a single parameter.DefaultRpcRequest(Class<?> serviceType, String method, Object... params)
Creates a new instance with the specified parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 thisRpcRequest
is called upon.protected String
simpleServiceName()
Returns the simplified name of theserviceType()
.String
toString()
-
-
-
Constructor Detail
-
DefaultRpcRequest
public DefaultRpcRequest(Class<?> serviceType, String method)
Creates a new instance with no parameter.
-
DefaultRpcRequest
public DefaultRpcRequest(Class<?> serviceType, String method, @Nullable Object parameter)
Creates a new instance with a single parameter.
-
DefaultRpcRequest
public DefaultRpcRequest(Class<?> serviceType, String method, Iterable<?> params)
Creates a new instance with the specified parameters.
-
-
Method Detail
-
serviceType
public final Class<?> serviceType()
Description copied from interface:RpcRequest
Returns the type of the service thisRpcRequest
is called upon.- Specified by:
serviceType
in interfaceRpcRequest
-
method
public final String method()
Description copied from interface:RpcRequest
Returns the method name.- Specified by:
method
in interfaceRpcRequest
-
params
public final List<Object> params()
Description copied from interface:RpcRequest
Returns the parameters.- Specified by:
params
in interfaceRpcRequest
-
simpleServiceName
protected final String simpleServiceName()
Returns the simplified name of theserviceType()
.
-
-