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
-
Method Summary
-
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 interfaceUsageCapacity
- Parameters:
size
-- Returns:
- true if the limit is reached
- See Also:
-
getLimit
public final long getLimit()- Specified by:
getLimit
in interfaceUsageCapacity
- Returns:
- the limit
-
setLimit
public final void setLimit(long limit) - Specified by:
setLimit
in interfaceUsageCapacity
- Parameters:
limit
- the limit to set
-