Interface ChangeEventListener<DocumentT>

  • Type Parameters:
    DocumentT - the type of class represented by the document in the change event.

    public interface ChangeEventListener<DocumentT>
    ChangeEventListener receives change event notifications.
    • Method Detail

      • onEvent

        void onEvent​(BsonValue documentId,
                     ChangeEvent<DocumentT> event)
        Called when a change event happens for the given document id.
        Parameters:
        documentId - the _id of the document related to the event.
        event - the change event.