public class NettyRpcClientProxy extends Object implements InvocationHandler
NettyRpcLoadBalanced.chooseAddress(NettyRpcRequest),
-----------------------------------------------------------------------
Support rpc method annotation list.,
Protocol.RpcParam,
RequestMapping,
RequestParam,
RequestBody,
RequestHeader,
PathVariable,
CookieValue,
RequestPartpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke 在接口中 InvocationHandlerThrowablepublic List<NettyRpcFilter> getNettyRpcFilterList()
public long getTimeout()
public void setTimeout(long timeout)
public AnnotationMethodToMethodNameFunction getAnnotationMethodToMethodNameFunction()
public AnnotationMethodToParameterNamesFunction getAnnotationMethodToParameterNamesFunction()
public RpcClient getClient(InetSocketAddress address)
address - InetSocketAddresspublic InetSocketAddress chooseAddress(NettyRpcRequest request)
public static NettyRpcRequest getRequest()
public static NettyRpcFilter.FilterChain getFilterChain()
public static Map<InetSocketAddress,RpcClient> getClientMap()
public String getRequestMappingName()
public String getVersion()
public Class<?> getInterfaceClass()
public String getRpcInstanceKey()
public String getServiceName()
public NettyProperties getProperties()
public Supplier<NettyRpcLoadBalanced> getLoadBalancedSupplier()
public void setLoadBalancedSupplier(Supplier<NettyRpcLoadBalanced> loadBalancedSupplier)
public void setServiceName(String serviceName)
Copyright © 2021. All rights reserved.