org.jsmpp.util
Interface CapacityPolicy

All Known Implementing Classes:
DumbCapacityPolicy, SimpleCapacityPolicy

public interface CapacityPolicy

It's capacity policy that ensure the new capacity is save for accommodate the new item with new capacity.

Author:
uudashr

Method Summary
 int ensureCapacity(int requiredCapacity, int currentCapacity)
          Ensuring the currentCapacity is save to accommodate new items that totally defined as requiredCapacity.
 

Method Detail

ensureCapacity

int ensureCapacity(int requiredCapacity,
                   int currentCapacity)
Ensuring the currentCapacity is save to accommodate new items that totally defined as requiredCapacity.

Parameters:
requiredCapacity - is the required capacity.
currentCapacity - is the current capacity.
Returns:
the new save capacity.