public class DefaultUsageCapacity extends Object implements UsageCapacity
Constructor and Description |
---|
DefaultUsageCapacity() |
Modifier and Type | Method and Description |
---|---|
long |
getLimit() |
boolean |
isLimit(long size)
Has the limit been reached ?
|
void |
setLimit(long limit) |
public DefaultUsageCapacity()
public boolean isLimit(long size)
UsageCapacity
isLimit
in interface UsageCapacity
size
- UsageCapacity.isLimit(long)
public final long getLimit()
getLimit
in interface UsageCapacity
public final void setLimit(long limit)
setLimit
in interface UsageCapacity
limit
- the limit to setCopyright © 2005–2019 The Apache Software Foundation. All rights reserved.