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
- Version:
- $Revision: 1.3 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultUsageCapacity
public DefaultUsageCapacity()
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:
UsageCapacity.isLimit(long)
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
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.