|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsmpp.util.DumbCapacityPolicy
public class DumbCapacityPolicy
It's a dumb capacity policy. It calculate nothing, just return the new capacity same as requeiredCapacity.
Constructor Summary | |
---|---|
DumbCapacityPolicy()
|
Method Summary | |
---|---|
int |
ensureCapacity(int requiredCapacity,
int currentCapacity)
Ensuring the currentCapacity is save to accommodate new items that totally defined as requiredCapacity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DumbCapacityPolicy()
Method Detail |
---|
public int ensureCapacity(int requiredCapacity, int currentCapacity)
CapacityPolicy
ensureCapacity
in interface CapacityPolicy
requiredCapacity
- is the required capacity.currentCapacity
- is the current capacity.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |