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,
java.lang.Throwable cause) |
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public 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 java.lang.Exception
channelRead0
in class io.netty.channel.SimpleChannelInboundHandler<io.netty.buffer.ByteBuf>
java.lang.Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, java.lang.Throwable cause) throws java.lang.Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
java.lang.Exception
Copyright © 2019. All Rights Reserved.