public abstract class ResponseHandlerBase<M,I extends com.emc.mongoose.api.model.item.Item,O extends com.emc.mongoose.api.model.io.task.IoTask<I>>
extends io.netty.channel.SimpleChannelInboundHandler<M>
| Modifier and Type | Field and Description |
|---|---|
protected NetStorageDriverBase<I,O> |
driver |
protected boolean |
verifyFlag |
| Modifier | Constructor and Description |
|---|---|
protected |
ResponseHandlerBase(NetStorageDriverBase<I,O> driver,
boolean verifyFlag) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
M msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause) |
protected abstract void |
handle(io.netty.channel.Channel channel,
O ioTask,
M msg) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object evt) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedensureNotSharable, handlerAdded, handlerRemoved, isSharableprotected final NetStorageDriverBase<I extends com.emc.mongoose.api.model.item.Item,O extends com.emc.mongoose.api.model.io.task.IoTask<I>> driver
protected final boolean verifyFlag
protected ResponseHandlerBase(NetStorageDriverBase<I,O> driver, boolean verifyFlag)
protected final void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
M msg)
throws java.lang.Exception
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<M>java.lang.Exceptionprotected abstract void handle(io.netty.channel.Channel channel,
O ioTask,
M msg)
throws java.io.IOException
java.io.IOExceptionpublic final void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause)
throws java.io.IOException
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterjava.io.IOExceptionpublic final void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object evt)
throws java.lang.Exception
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exception