Package org.apache.activemq.usage
Class DefaultUsageCapacity
java.lang.Object
org.apache.activemq.usage.DefaultUsageCapacity
- All Implemented Interfaces:
UsageCapacity
Identify if a limit has been reached
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultUsageCapacity
public DefaultUsageCapacity()
-
-
Method Details
-
isLimit
public boolean isLimit(long size) Description copied from interface:UsageCapacityHas the limit been reached ?- Specified by:
isLimitin interfaceUsageCapacity- Parameters:
size-- Returns:
- true if the limit is reached
- See Also:
-
getLimit
public final long getLimit()- Specified by:
getLimitin interfaceUsageCapacity- Returns:
- the limit
-
setLimit
public final void setLimit(long limit) - Specified by:
setLimitin interfaceUsageCapacity- Parameters:
limit- the limit to set
-