Package de.bwaldvogel.mongo
Interface MongoBackend
- All Superinterfaces:
AsyncMongoBackend
- All Known Implementing Classes:
AbstractMongoBackend,ReadOnlyProxy
public interface MongoBackend extends AsyncMongoBackend
-
Method Summary
Modifier and Type Method Description voidclose()default java.util.concurrent.CompletionStage<java.lang.Void>closeAsync()voiddisableOplog()voiddropDatabase(java.lang.String database)default java.util.concurrent.CompletionStage<java.lang.Void>dropDatabaseAsync(java.lang.String database)voidenableOplog()java.time.ClockgetClock()java.util.Collection<Document>getCurrentOperations(MongoQuery query)DocumentgetServerStatus()voidhandleClose(io.netty.channel.Channel channel)default java.util.concurrent.CompletionStage<java.lang.Void>handleCloseAsync(io.netty.channel.Channel channel)DocumenthandleCommand(io.netty.channel.Channel channel, java.lang.String database, java.lang.String command, Document query)default java.util.concurrent.CompletionStage<Document>handleCommandAsync(io.netty.channel.Channel channel, java.lang.String database, java.lang.String command, Document query)voidhandleDelete(MongoDelete delete)default java.util.concurrent.CompletionStage<java.lang.Void>handleDeleteAsync(MongoDelete delete)QueryResulthandleGetMore(long cursorId, int numberToReturn)QueryResulthandleGetMore(MongoGetMore getMore)default java.util.concurrent.CompletionStage<QueryResult>handleGetMoreAsync(MongoGetMore getMore)voidhandleInsert(MongoInsert insert)default java.util.concurrent.CompletionStage<java.lang.Void>handleInsertAsync(MongoInsert insert)voidhandleKillCursors(MongoKillCursors mongoKillCursors)default java.util.concurrent.CompletionStage<java.lang.Void>handleKillCursorsAsync(MongoKillCursors mongoKillCursors)DocumenthandleMessage(MongoMessage message)default java.util.concurrent.CompletionStage<Document>handleMessageAsync(MongoMessage message)QueryResulthandleQuery(MongoQuery query)default java.util.concurrent.CompletionStage<QueryResult>handleQueryAsync(MongoQuery query)voidhandleUpdate(MongoUpdate update)default java.util.concurrent.CompletionStage<java.lang.Void>handleUpdateAsync(MongoUpdate update)MongoDatabaseresolveDatabase(java.lang.String database)MongoBackendversion(ServerVersion version)
-
Method Details
-
handleClose
void handleClose(io.netty.channel.Channel channel) -
handleCloseAsync
default java.util.concurrent.CompletionStage<java.lang.Void> handleCloseAsync(io.netty.channel.Channel channel)- Specified by:
handleCloseAsyncin interfaceAsyncMongoBackend
-
handleCommand
-
handleCommandAsync
default java.util.concurrent.CompletionStage<Document> handleCommandAsync(io.netty.channel.Channel channel, java.lang.String database, java.lang.String command, Document query)- Specified by:
handleCommandAsyncin interfaceAsyncMongoBackend
-
handleQuery
-
handleQueryAsync
- Specified by:
handleQueryAsyncin interfaceAsyncMongoBackend
-
handleGetMore
-
handleGetMore
-
handleGetMoreAsync
- Specified by:
handleGetMoreAsyncin interfaceAsyncMongoBackend
-
handleInsert
-
handleInsertAsync
- Specified by:
handleInsertAsyncin interfaceAsyncMongoBackend
-
handleDelete
-
handleDeleteAsync
- Specified by:
handleDeleteAsyncin interfaceAsyncMongoBackend
-
handleUpdate
-
handleUpdateAsync
- Specified by:
handleUpdateAsyncin interfaceAsyncMongoBackend
-
handleKillCursors
-
handleKillCursorsAsync
default java.util.concurrent.CompletionStage<java.lang.Void> handleKillCursorsAsync(MongoKillCursors mongoKillCursors)- Specified by:
handleKillCursorsAsyncin interfaceAsyncMongoBackend
-
handleMessage
-
handleMessageAsync
- Specified by:
handleMessageAsyncin interfaceAsyncMongoBackend
-
dropDatabase
void dropDatabase(java.lang.String database) -
dropDatabaseAsync
default java.util.concurrent.CompletionStage<java.lang.Void> dropDatabaseAsync(java.lang.String database)- Specified by:
dropDatabaseAsyncin interfaceAsyncMongoBackend
-
getCurrentOperations
-
getServerStatus
Document getServerStatus() -
close
void close() -
closeAsync
default java.util.concurrent.CompletionStage<java.lang.Void> closeAsync()- Specified by:
closeAsyncin interfaceAsyncMongoBackend
-
getClock
java.time.Clock getClock() -
enableOplog
void enableOplog() -
disableOplog
void disableOplog() -
resolveDatabase
-
version
-