org.apache.activemq.usage
Interface UsageCapacity

All Known Implementing Classes:
DefaultUsageCapacity

public interface UsageCapacity

Identify if a limit has been reached


Method Summary
 long getLimit()
           
 boolean isLimit(long size)
          Has the limit been reached ?
 void setLimit(long limit)
           
 

Method Detail

isLimit

boolean isLimit(long size)
Has the limit been reached ?

Parameters:
size -
Returns:
true if it has

getLimit

long getLimit()
Returns:
the limit

setLimit

void setLimit(long limit)
Parameters:
limit - the limit to set


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.