Package de.bwaldvogel.mongo.wire
Class MongoDatabaseHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<ClientRequest>
-
- de.bwaldvogel.mongo.wire.MongoDatabaseHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class MongoDatabaseHandler extends io.netty.channel.SimpleChannelInboundHandler<ClientRequest>
-
-
Constructor Summary
Constructors Constructor Description MongoDatabaseHandler(MongoBackend mongoBackend, io.netty.channel.group.ChannelGroup channelGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelActive(io.netty.channel.ChannelHandlerContext ctx)voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx)protected voidchannelRead0(io.netty.channel.ChannelHandlerContext ctx, ClientRequest object)-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Constructor Detail
-
MongoDatabaseHandler
public MongoDatabaseHandler(MongoBackend mongoBackend, io.netty.channel.group.ChannelGroup channelGroup)
-
-
Method Detail
-
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception- Specified by:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
java.lang.Exception
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception- Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
java.lang.Exception
-
channelRead0
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, ClientRequest object) throws java.lang.Exception- Specified by:
channelRead0in classio.netty.channel.SimpleChannelInboundHandler<ClientRequest>- Throws:
java.lang.Exception
-
-