Package de.bwaldvogel.mongo
Interface MongoBackend
-
- All Known Implementing Classes:
AbstractMongoBackend,ReadOnlyProxy
public interface MongoBackend
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()voiddropDatabase(java.lang.String database)java.time.ClockgetClock()java.util.Collection<Document>getCurrentOperations(MongoQuery query)java.util.List<java.lang.Integer>getVersion()voidhandleClose(io.netty.channel.Channel channel)DocumenthandleCommand(io.netty.channel.Channel channel, java.lang.String database, java.lang.String command, Document query)voidhandleDelete(MongoDelete delete)voidhandleInsert(MongoInsert insert)java.lang.Iterable<Document>handleQuery(MongoQuery query)voidhandleUpdate(MongoUpdate update)voidsetClock(java.time.Clock clock)
-
-
-
Method Detail
-
handleClose
void handleClose(io.netty.channel.Channel channel)
-
handleCommand
Document handleCommand(io.netty.channel.Channel channel, java.lang.String database, java.lang.String command, Document query)
-
handleQuery
java.lang.Iterable<Document> handleQuery(MongoQuery query)
-
handleInsert
void handleInsert(MongoInsert insert)
-
handleDelete
void handleDelete(MongoDelete delete)
-
handleUpdate
void handleUpdate(MongoUpdate update)
-
dropDatabase
void dropDatabase(java.lang.String database)
-
getCurrentOperations
java.util.Collection<Document> getCurrentOperations(MongoQuery query)
-
getVersion
java.util.List<java.lang.Integer> getVersion()
-
close
void close()
-
getClock
java.time.Clock getClock()
-
setClock
void setClock(java.time.Clock clock)
-
-