Class DeleteResult


  • @Deprecated(since="2021-05-27")
    public abstract class DeleteResult
    extends java.lang.Object
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    The result of a delete operation. If the delete was unacknowledged, then wasAcknowledged will return false and all other methods will throw UnsupportedOperationException.
    Since:
    3.0
    See Also:
    WriteConcern.UNACKNOWLEDGED
    • Constructor Detail

      • DeleteResult

        public DeleteResult()
        Deprecated.
    • Method Detail

      • wasAcknowledged

        public abstract boolean wasAcknowledged()
        Deprecated.
        Returns true if the write was acknowledged.
        Returns:
        true if the write was acknowledged
      • getDeletedCount

        public abstract long getDeletedCount()
        Deprecated.
        Gets the number of documents deleted.
        Returns:
        the number of documents deleted
      • acknowledged

        public static DeleteResult acknowledged​(long deletedCount)
        Deprecated.
        Create an acknowledged DeleteResult
        Parameters:
        deletedCount - the number of documents deleted
        Returns:
        an acknowledged DeleteResult
      • unacknowledged

        public static DeleteResult unacknowledged()
        Deprecated.
        Create an unacknowledged DeleteResult
        Returns:
        an unacknowledged DeleteResult