Class DefaultUsageCapacity

java.lang.Object
org.apache.activemq.usage.DefaultUsageCapacity
All Implemented Interfaces:
UsageCapacity

public class DefaultUsageCapacity extends Object implements UsageCapacity
Identify if a limit has been reached
  • Constructor Details

    • DefaultUsageCapacity

      public DefaultUsageCapacity()
  • Method Details

    • isLimit

      public boolean isLimit(long size)
      Description copied from interface: UsageCapacity
      Has the limit been reached ?
      Specified by:
      isLimit in interface UsageCapacity
      Parameters:
      size -
      Returns:
      true if the limit is reached
      See Also:
    • getLimit

      public final long getLimit()
      Specified by:
      getLimit in interface UsageCapacity
      Returns:
      the limit
    • setLimit

      public final void setLimit(long limit)
      Specified by:
      setLimit in interface UsageCapacity
      Parameters:
      limit - the limit to set