public class GrpcClient extends Object implements RpcClient
| 构造器和说明 |
|---|
GrpcClient(Map<String,Message> parserClasses,
MarshallerRegistry marshallerRegistry) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
checkConnection(Endpoint endpoint) |
boolean |
checkConnection(Endpoint endpoint,
boolean createIfAbsent) |
void |
closeConnection(Endpoint endpoint) |
boolean |
init(RpcOptions opts) |
void |
invokeAsync(Endpoint endpoint,
Object request,
InvokeContext ctx,
InvokeCallback callback,
long timeoutMs) |
Object |
invokeSync(Endpoint endpoint,
Object request,
InvokeContext ctx,
long timeoutMs) |
void |
registerConnectEventListener(ReplicatorGroup replicatorGroup) |
void |
shutdown() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinvokeAsync, invokeSyncpublic GrpcClient(Map<String,Message> parserClasses, MarshallerRegistry marshallerRegistry)
public boolean init(RpcOptions opts)
init 在接口中 Lifecycle<RpcOptions>public void shutdown()
shutdown 在接口中 Lifecycle<RpcOptions>public boolean checkConnection(Endpoint endpoint)
checkConnection 在接口中 RpcClientpublic boolean checkConnection(Endpoint endpoint, boolean createIfAbsent)
checkConnection 在接口中 RpcClientpublic void closeConnection(Endpoint endpoint)
closeConnection 在接口中 RpcClientpublic void registerConnectEventListener(ReplicatorGroup replicatorGroup)
registerConnectEventListener 在接口中 RpcClientpublic Object invokeSync(Endpoint endpoint, Object request, InvokeContext ctx, long timeoutMs) throws RemotingException
invokeSync 在接口中 RpcClientRemotingExceptionpublic void invokeAsync(Endpoint endpoint, Object request, InvokeContext ctx, InvokeCallback callback, long timeoutMs)
invokeAsync 在接口中 RpcClientCopyright © 2020. All rights reserved.