org.apache.activemq.usage
Class DefaultUsageCapacity

java.lang.Object
  extended by 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
DefaultUsageCapacity()
           
 
Method Summary
 long getLimit()
           
 boolean isLimit(long size)
          Has the limit been reached ?
 void setLimit(long limit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUsageCapacity

public DefaultUsageCapacity()
Method Detail

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–2013 The Apache Software Foundation. All rights reserved.