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:
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, handleQuery, initializeNamespacesAndIndexes, isEmpty, isPrimaryKeyIndex, moveCollection, openOrCreateCollection, openOrCreateSecondaryIndex, openOrCreateUniqueIndex, toString, unregisterCollectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.bwaldvogel.mongo.MongoDatabase
createCollectionOrThrowIfExists
-
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>
-