DocumentT
- The type of the full document in the change event.public abstract class BaseChangeEvent<DocumentT> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BaseChangeEvent.OperationType
Represents the different MongoDB operations that can occur.
|
Modifier and Type | Method and Description |
---|---|
BsonDocument |
getDocumentKey()
The unique identifier for the document that was actually changed.
|
DocumentT |
getFullDocument()
The full document at some point after the change has been applied.
|
BaseChangeEvent.OperationType |
getOperationType()
Returns the operation type of the change that triggered the change event.
|
UpdateDescription |
getUpdateDescription()
In the case of an update, the description of which fields have been added, removed or updated.
|
boolean |
hasUncommittedWrites()
Indicates a local change event that has not yet been synchronized with a remote data store.
|
abstract BsonDocument |
toBsonDocument()
Converts the change event to a BSON representation, as it would look on a MongoDB realm change
stream, or a Realm compact watch stream.
|
public BaseChangeEvent.OperationType getOperationType()
public DocumentT getFullDocument()
public BsonDocument getDocumentKey()
public UpdateDescription getUpdateDescription()
public boolean hasUncommittedWrites()
public abstract BsonDocument toBsonDocument()