public class JsonResponseCallbackHandler<T>
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.buffer.ByteBuf>
ResultCallback.onNext(Object)| Constructor and Description |
|---|
JsonResponseCallbackHandler(com.fasterxml.jackson.core.type.TypeReference<T> typeReference,
ResultCallback<T> callback) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredhandlerAdded, handlerRemoved, isSharablepublic JsonResponseCallbackHandler(com.fasterxml.jackson.core.type.TypeReference<T> typeReference, ResultCallback<T> callback)
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf msg)
throws Exception
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<io.netty.buffer.ByteBuf>Exceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterExceptionCopyright © 2017. All Rights Reserved.