Package de.bwaldvogel.mongo.backend
Class AbstractSynchronizedMongoDatabase<P>
java.lang.Object
de.bwaldvogel.mongo.backend.AbstractMongoDatabase<P>
de.bwaldvogel.mongo.backend.AbstractSynchronizedMongoDatabase<P>
- All Implemented Interfaces:
AsyncMongoDatabase,MongoDatabase
-
Field Summary
Fields inherited from class de.bwaldvogel.mongo.backend.AbstractMongoDatabase
cursorRegistry, databaseName, indexes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSynchronizedMongoDatabase(String databaseName, CursorRegistry cursorRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidclearLastStatus(io.netty.channel.Channel channel) protected intprotected MongoCollection<P>protected voidputLastResult(io.netty.channel.Channel channel, Document result) resolveCollection(String collectionName, boolean throwIfNotFound) protected MongoCollection<P>resolveOrCreateCollection(String collectionName) Methods inherited from class de.bwaldvogel.mongo.backend.AbstractMongoDatabase
createCollectionOrThrowIfExists, drop, dropCollection, dropIndex, getDatabaseName, getFileSize, getFullCollectionNamespace, getStorageSize, handleClose, handleCommand, handleCommandAsync, handleQuery, handleQueryAsync, initializeNamespacesAndIndexes, isEmpty, isPrimaryKeyIndex, moveCollection, openOrCreateCollection, openOrCreateSecondaryIndex, openOrCreateUniqueIndex, toString, unregisterCollection
-
Constructor Details
-
AbstractSynchronizedMongoDatabase
-
-
Method Details
-
resolveOrCreateCollection
- Overrides:
resolveOrCreateCollectionin classAbstractMongoDatabase<P>
-
clearLastStatus
protected void clearLastStatus(io.netty.channel.Channel channel) - Overrides:
clearLastStatusin classAbstractMongoDatabase<P>
-
resolveCollection
- Specified by:
resolveCollectionin interfaceMongoDatabase- Overrides:
resolveCollectionin classAbstractMongoDatabase<P>
-
addIndex
- Overrides:
addIndexin classAbstractMongoDatabase<P>
-
getOrCreateIndexesCollection
- Overrides:
getOrCreateIndexesCollectionin classAbstractMongoDatabase<P>
-
putLastResult
- Overrides:
putLastResultin classAbstractMongoDatabase<P>
-
countIndexes
protected int countIndexes()- Overrides:
countIndexesin classAbstractMongoDatabase<P>
-