Interface FailedOperationListener


  • public interface FailedOperationListener
    Contract for a class that handles failures from within a WriteModelContainer.
    • Method Detail

      • onFailedRemoteUpdate

        default void onFailedRemoteUpdate​(Bson filter,
                                          Bson update)
        Handler for a failed update operation within a WriteModelContainer.
        Parameters:
        filter - the filter from the write model that failed.
        update - the update from the write model that failed.
      • onFailedRemoteReplace

        default void onFailedRemoteReplace​(Bson filter,
                                           Bson document)
        Handler for a failed replace operation within a WriteModelContainer.
        Parameters:
        filter - the filter from the write model that failed.
        document - the replacemet from the write model that failed.
      • onFailedRemoteInsert

        default void onFailedRemoteInsert​(Bson document)
        Handler for a failed insert operation within a WriteModelContainer.
        Parameters:
        document - the document that failed to insert.
      • onFailedRemoteDelete

        default void onFailedRemoteDelete​(Bson filter)
        Handler for a failed delete operation within a WriteModelContainer.
        Parameters:
        filter - the filter from the write model that failed.