REQ - the type of request the client will send.RESP - the type of response the client expects to receive.public class ClientHandler<REQ extends MessageBody,RESP extends MessageBody>
extends org.apache.paimon.shade.netty4.io.netty.channel.ChannelInboundHandlerAdapter
NetworkClient to handling incoming messages.| 构造器和说明 |
|---|
ClientHandler(MessageSerializer<REQ,RESP> serializer,
ClientHandlerCallback<RESP> callback)
Creates a handler with the callback.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelInactive(org.apache.paimon.shade.netty4.io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(org.apache.paimon.shade.netty4.io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
exceptionCaught(org.apache.paimon.shade.netty4.io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic ClientHandler(MessageSerializer<REQ,RESP> serializer, ClientHandlerCallback<RESP> callback)
serializer - the serializer used to (de-)serialize messages.callback - Callback for responses.public void channelRead(org.apache.paimon.shade.netty4.io.netty.channel.ChannelHandlerContext ctx,
Object msg)
channelRead 在接口中 org.apache.paimon.shade.netty4.io.netty.channel.ChannelInboundHandlerchannelRead 在类中 org.apache.paimon.shade.netty4.io.netty.channel.ChannelInboundHandlerAdapterpublic void exceptionCaught(org.apache.paimon.shade.netty4.io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught 在接口中 org.apache.paimon.shade.netty4.io.netty.channel.ChannelHandlerexceptionCaught 在接口中 org.apache.paimon.shade.netty4.io.netty.channel.ChannelInboundHandlerexceptionCaught 在类中 org.apache.paimon.shade.netty4.io.netty.channel.ChannelInboundHandlerAdapterpublic void channelInactive(org.apache.paimon.shade.netty4.io.netty.channel.ChannelHandlerContext ctx)
channelInactive 在接口中 org.apache.paimon.shade.netty4.io.netty.channel.ChannelInboundHandlerchannelInactive 在类中 org.apache.paimon.shade.netty4.io.netty.channel.ChannelInboundHandlerAdapterCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.