Class WritableRequestDecoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- com.alibaba.graphscope.parallel.netty.request.serialization.WritableRequestDecoder
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class WritableRequestDecoder extends io.netty.channel.ChannelInboundHandlerAdapter
-
-
Constructor Summary
Constructors Constructor Description WritableRequestDecoder(ImmutableClassesGiraphConfiguration conf, int decoderId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)Reade the byteBuffer(Obtained from lengthFieldDecoder), forward the request to the next handler.-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Constructor Detail
-
WritableRequestDecoder
public WritableRequestDecoder(ImmutableClassesGiraphConfiguration conf, int decoderId)
-
-
Method Detail
-
channelRead
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws ExceptionReade the byteBuffer(Obtained from lengthFieldDecoder), forward the request to the next handler.- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter- Parameters:
ctx-msg-- Throws:
Exception
-
-