Package de.bwaldvogel.mongo.oplog
Class CollectionBackedOplog
java.lang.Object
de.bwaldvogel.mongo.oplog.CollectionBackedOplog
- All Implemented Interfaces:
Oplog
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionBackedOplog(MongoBackend backend, MongoCollection<Document> collection, CursorRegistry cursorRegistry) -
Method Summary
Modifier and TypeMethodDescriptioncreateCursor(Document changeStreamDocument, String namespace, Aggregation aggregation) voidhandleDelete(String namespace, Document query, List<Object> deletedIds) voidhandleDropCollection(String namespace) voidhandleInsert(String namespace, List<Document> documents) void
-
Constructor Details
-
CollectionBackedOplog
public CollectionBackedOplog(MongoBackend backend, MongoCollection<Document> collection, CursorRegistry cursorRegistry)
-
-
Method Details
-
handleInsert
- Specified by:
handleInsertin interfaceOplog
-
handleUpdate
public void handleUpdate(String namespace, Document selector, Document query, List<Object> modifiedIds) - Specified by:
handleUpdatein interfaceOplog
-
handleDelete
- Specified by:
handleDeletein interfaceOplog
-
handleDropCollection
- Specified by:
handleDropCollectionin interfaceOplog
-
createCursor
public Cursor createCursor(Document changeStreamDocument, String namespace, Aggregation aggregation) - Specified by:
createCursorin interfaceOplog
-