![]() |
Storage Engine API
|
When a capped collection is modified (delete/insert/etc) then certain notifications need to be made, which this (pure virtual) interface exposes. More...
#include <capped_callback.h>
When a capped collection is modified (delete/insert/etc) then certain notifications need to be made, which this (pure virtual) interface exposes.
Public Member Functions | |
virtual | ~CappedCallback () |
virtual Status | aboutToDeleteCapped (OperationContext *opCtx, const RecordId &loc, RecordData data)=0 |
This will be called right before loc is deleted when wrapping. More... | |
virtual bool | haveCappedWaiters ()=0 |
Returns true if there may be waiters. More... | |
virtual void | notifyCappedWaitersIfNeeded ()=0 |
Used to notify any waiters when new documents may be visible in the capped collection. More... | |
|
inlinevirtual |
|
pure virtual |
This will be called right before loc is deleted when wrapping.
If data is unowned, it is only valid inside of this call. If implementations wish to stash a pointer, they must copy it.
Implemented in mongo::Collection, mongo::CollectionImpl, mongo::Collection::Impl, and mongo::CollectionMock.
|
pure virtual |
Returns true if there may be waiters.
Implemented in mongo::Collection, mongo::CollectionImpl, mongo::Collection::Impl, and mongo::CollectionMock.
|
pure virtual |
Used to notify any waiters when new documents may be visible in the capped collection.
Implemented in mongo::Collection, mongo::CollectionImpl, mongo::Collection::Impl, and mongo::CollectionMock.