public class MongoDatabaseHandler extends io.netty.channel.SimpleChannelInboundHandler<ClientRequest>
| Constructor and Description |
|---|
MongoDatabaseHandler(MongoBackend mongoBackend,
io.netty.channel.group.ChannelGroup channelGroup) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
ClientRequest object) |
java.util.Date |
getStartDate() |
protected org.bson.BSONObject |
handleCommand(io.netty.channel.Channel channel,
MongoQuery query,
java.util.List<org.bson.BSONObject> documents) |
protected MongoReply |
handleQuery(io.netty.channel.Channel channel,
MongoQuery query) |
acceptInboundMessage, channelReadchannelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredhandlerAdded, handlerRemoved, isSharablepublic MongoDatabaseHandler(MongoBackend mongoBackend, io.netty.channel.group.ChannelGroup channelGroup)
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionprotected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
ClientRequest object)
throws java.lang.Exception
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<ClientRequest>java.lang.Exceptionpublic java.util.Date getStartDate()
protected MongoReply handleQuery(io.netty.channel.Channel channel, MongoQuery query)
protected org.bson.BSONObject handleCommand(io.netty.channel.Channel channel,
MongoQuery query,
java.util.List<org.bson.BSONObject> documents)
throws MongoServerException
MongoServerException