Class AbstractSpaceQuotaService<T extends AbstractSpaceQuotaKey>

    • Constructor Detail

      • AbstractSpaceQuotaService

        public AbstractSpaceQuotaService()
    • Method Detail

      • createKeyFrom

        protected abstract T createKeyFrom​(SpaceInst space)
        Creates a quota key
        Parameters:
        space -
        Returns:
      • verify

        public Quota verify​(T key,
                            Quota quota,
                            AbstractQuotaCountingOffset countingOffset)
                     throws QuotaException
        Description copied from interface: QuotaService
        Verifies if the given loaded and computed quota by adding a counting offset.

        Be aware of that the quota count is not again computed by this service. When this signature is called, it means that the Quota instance has been already loaded and there is no need to perform again the counting.

        If full then a quota full exception is thrown. If not enough then a quota not enough exception is thrown.
        Specified by:
        verify in interface QuotaService<T extends AbstractSpaceQuotaKey>
        Overrides:
        verify in class AbstractQuotaService<T extends AbstractSpaceQuotaKey>
        Parameters:
        key - the key
        quota - a loaded quota
        countingOffset - a counting offset
        Returns:
        a copied quota from the given one containing the count with the offset used by the verify treatment
        Throws:
        QuotaException - on error