public interface NettyRpcRequest
| 限定符和类型 | 方法和说明 |
|---|---|
ApplicationX |
getApplication()
Application bean container
|
Object[] |
getArgs()
Parameters for this call
|
Map<InetSocketAddress,RpcClient> |
getClientMap()
address mapping client instance
|
NettyRpcClientProxy |
getClientProxy() |
Class |
getInterfaceClass()
Get interface class
|
Supplier<NettyRpcLoadBalanced> |
getLoadBalancedSupplier() |
Method |
getMethod()
The method to call this time
|
NettyProperties |
getNettyProperties()
Yml configuration file
|
Object |
getProxy() |
String |
getRequestMappingName()
The RequestMapping annotation is retrieved from the value field of the RequestMapping annotation.
|
String |
getRpcInstanceKey()
rpcInstanceKey
RpcClient.getRpcInstance(String) |
String |
getServiceName()
It is obtained from the serviceName field annotated by the NettyRpcClient
|
long |
getTimeout() |
String |
getVersion()
you rpc service version
Protocol.RpcService.version() |
void |
setTimeout(long timeout)
setting once request timeout. unit is millSecond
|
String getRpcInstanceKey()
RpcClient.getRpcInstance(String)Object getProxy()
NettyRpcClientProxy getClientProxy()
Supplier<NettyRpcLoadBalanced> getLoadBalancedSupplier()
Method getMethod()
Object[] getArgs()
String getServiceName()
String getRequestMappingName()
String getVersion()
Protocol.RpcService.version()void setTimeout(long timeout)
timeout - timeoutlong getTimeout()
NettyProperties getNettyProperties()
ApplicationX getApplication()
Map<InetSocketAddress,RpcClient> getClientMap()
Class getInterfaceClass()
Copyright © 2021. All rights reserved.