public class ReadOnlyProxy extends java.lang.Object implements MongoBackend
| Modifier and Type | Class and Description |
|---|---|
static class |
ReadOnlyProxy.ReadOnlyException |
| Constructor and Description |
|---|
ReadOnlyProxy(MongoBackend backend) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<org.bson.BSONObject> |
getCurrentOperations(MongoQuery query) |
void |
handleClose(io.netty.channel.Channel channel) |
org.bson.BSONObject |
handleCommand(io.netty.channel.Channel channel,
java.lang.String database,
java.lang.String command,
org.bson.BSONObject query) |
void |
handleDelete(MongoDelete delete) |
void |
handleInsert(MongoInsert insert) |
java.lang.Iterable<org.bson.BSONObject> |
handleQuery(MongoQuery query) |
void |
handleUpdate(MongoUpdate update) |
public ReadOnlyProxy(MongoBackend backend)
public void handleClose(io.netty.channel.Channel channel)
handleClose in interface MongoBackendpublic org.bson.BSONObject handleCommand(io.netty.channel.Channel channel,
java.lang.String database,
java.lang.String command,
org.bson.BSONObject query)
throws MongoServerException
handleCommand in interface MongoBackendMongoServerExceptionpublic java.util.Collection<org.bson.BSONObject> getCurrentOperations(MongoQuery query)
getCurrentOperations in interface MongoBackendpublic java.lang.Iterable<org.bson.BSONObject> handleQuery(MongoQuery query) throws MongoServerException
handleQuery in interface MongoBackendMongoServerExceptionpublic void handleInsert(MongoInsert insert) throws MongoServerException
handleInsert in interface MongoBackendMongoServerExceptionpublic void handleDelete(MongoDelete delete) throws MongoServerException
handleDelete in interface MongoBackendMongoServerExceptionpublic void handleUpdate(MongoUpdate update) throws MongoServerException
handleUpdate in interface MongoBackendMongoServerExceptionCopyright © 2014. All Rights Reserved.