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