public class ChangeStreamEvent<T> extends Object
Message implementation specific to MongoDB Change
Streams.| Constructor and Description |
|---|
ChangeStreamEvent(com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document> raw,
Class<T> targetType,
MongoConverter converter) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
T |
getBody()
Get the potentially converted
ChangeStreamDocument.getFullDocument(). |
com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document> |
getRaw()
Get the raw
ChangeStreamDocument as emitted by the driver. |
int |
hashCode() |
String |
toString() |
public ChangeStreamEvent(@Nullable com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document> raw, Class<T> targetType, MongoConverter converter)
raw - can be null.targetType - must not be null.converter - must not be null.@Nullable public com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document> getRaw()
ChangeStreamDocument as emitted by the driver.@Nullable public T getBody()
ChangeStreamDocument.getFullDocument().getRaw() or ChangeStreamDocument.getFullDocument() is
null.@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") protected boolean canEqual(Object other)
@Generated(value="lombok") public int hashCode()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.