public class GrpcClient extends Object implements RpcClient
| Constructor and Description |
|---|
GrpcClient(Map<String,Message> parserClasses,
MarshallerRegistry marshallerRegistry) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface Lifecycle<RpcOptions>public void shutdown()
shutdown in interface Lifecycle<RpcOptions>public boolean checkConnection(Endpoint endpoint)
checkConnection in interface RpcClientpublic boolean checkConnection(Endpoint endpoint, boolean createIfAbsent)
checkConnection in interface RpcClientpublic void closeConnection(Endpoint endpoint)
closeConnection in interface RpcClientpublic void registerConnectEventListener(ReplicatorGroup replicatorGroup)
registerConnectEventListener in interface RpcClientpublic Object invokeSync(Endpoint endpoint, Object request, InvokeContext ctx, long timeoutMs) throws RemotingException
invokeSync in interface RpcClientRemotingExceptionpublic void invokeAsync(Endpoint endpoint, Object request, InvokeContext ctx, InvokeCallback callback, long timeoutMs)
invokeAsync in interface RpcClientCopyright © 2024. All rights reserved.