public final class NettyRPC extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NettyRPC.RPCHandler
Netty RPC client handler.
|
Modifier and Type | Method and Description |
---|---|
static ProtoMessage |
call(NettyRPCContext context,
ProtoMessage request)
Sends a request and waits for a response.
|
static void |
fireAndForget(NettyRPCContext context,
ProtoMessage request)
Sends a request and waits until the request is flushed to network.
|
public static ProtoMessage call(NettyRPCContext context, ProtoMessage request) throws IOException
context
- the netty RPC contextrequest
- the RPC requestIOException
public static void fireAndForget(NettyRPCContext context, ProtoMessage request) throws IOException
context
- the netty RPC contextrequest
- the RPC requestIOException
Copyright © 2023. All Rights Reserved.