Package io.hekate.rpc
Interface RpcRequest
-
public interface RpcRequest
RPC request for load balancing.- See Also:
RpcLoadBalancer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object[]
args()
Returns arguments of this RPC request.boolean
hasArgs()
Returnstrue
if RPC request has arguments.boolean
isSplit()
Method
method()
Returns the RPC method.Class<?>
rpcInterface()
Returns the RPC interface.String
rpcTag()
Returns the RPC interface tag.int
rpcVersion()
Returns the RPC interface version.
-
-
-
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()
-
rpcTag
String rpcTag()
Returns the RPC interface tag.- Returns:
- RPC interface tag.
- See Also:
RpcClientConfig.setTag(String)
-
args
Object[] args()
Returns arguments of this RPC request.
-
hasArgs
boolean hasArgs()
Returnstrue
if RPC request has arguments.- Returns:
true
if RPC request has arguments.- See Also:
args()
-
isSplit
boolean isSplit()
- Returns:
true
if this is anRpcAggregate
request withRpcSplit
of an argument.
-
-