Interface ChangeEventListener<DocumentT>
-
- Type Parameters:
DocumentT
- the type of class represented by the document in the change event.
- All Superinterfaces:
BaseChangeEventListener<DocumentT,ChangeEvent<DocumentT>>
public interface ChangeEventListener<DocumentT> extends BaseChangeEventListener<DocumentT,ChangeEvent<DocumentT>>
ChangeEventListener receives change event notifications.
-
-
Method Summary
Modifier and Type Method Description void
onEvent(BsonValue documentId, ChangeEvent<DocumentT> event)
Called when a change event happens for the given document id.
-
-
-
Method Detail
-
onEvent
void onEvent(BsonValue documentId, ChangeEvent<DocumentT> event)
Called when a change event happens for the given document id.- Specified by:
onEvent
in interfaceBaseChangeEventListener<DocumentT,ChangeEvent<DocumentT>>
- Parameters:
documentId
- the _id of the document related to the event.event
- the change event.
-
-