Package org.apache.activemq.usage
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 Summary
Constructors Constructor Description DefaultUsageCapacity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetLimit()booleanisLimit(long size)Has the limit been reached ?voidsetLimit(long limit)
-
-
-
Method Detail
-
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:
UsageCapacity.isLimit(long)
-
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
-
-