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 long
getLimit()
boolean
isLimit(long size)
Has the limit been reached ?void
setLimit(long limit)
-
-
-
Method Detail
-
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:
UsageCapacity.isLimit(long)
-
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
-
-