Interface UsageCapacity

  • All Known Implementing Classes:
    DefaultUsageCapacity

    public interface UsageCapacity
    Identify if a limit has been reached
    • Method Detail

      • isLimit

        boolean isLimit​(long size)
        Has the limit been reached ?
        Parameters:
        size -
        Returns:
        true if it has
      • getLimit

        long getLimit()
        Returns:
        the limit
      • setLimit

        void setLimit​(long limit)
        Parameters:
        limit - the limit to set