Interface UsageService

  • All Known Implementing Classes:
    UsageServiceImpl

    public interface UsageService
    The public API by which applications can create usage delta entries.
    Since:
    2.9, 3.0
    Author:
    janv
    • Method Detail

      • insertDelta

        @NotAuditable
        void insertDelta​(NodeRef usageNodeRef,
                         long deltaSize)
        Add a usage delta entry.
      • getTotalDeltaSize

        @NotAuditable
        long getTotalDeltaSize​(NodeRef usageNodeRef)
        Get sum of usage delta sizes.
      • getAndRemoveTotalDeltaSize

        @NotAuditable
        long getAndRemoveTotalDeltaSize​(NodeRef usageNodeRef)
        Get sum of usage delta sizes and remove affected deltas.
      • deleteDeltas

        @NotAuditable
        int deleteDeltas​(NodeRef usageNodeRef)
        Delete the usage delta nodes