public interface Resizable
resize(Integer) effector, the number of child nodes
can be reduced (by shutting down some of them) or increased (by provisioning new entities.)| Modifier and Type | Interface and Description |
|---|---|
static class |
Resizable.InsufficientCapacityException
Indicates that resizing up to the desired size is not possible - only resized to the
getCurrentSize(), because there is insufficient capacity. |
| Modifier and Type | Field and Description |
|---|---|
static MethodEffector<java.lang.Integer> |
RESIZE |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getCurrentSize() |
java.lang.Integer |
resize(java.lang.Integer desiredSize)
Grow or shrink this entity to the desired size.
|
static final MethodEffector<java.lang.Integer> RESIZE
java.lang.Integer resize(java.lang.Integer desiredSize)
desiredSize - the new size of the entity group.Resizable.InsufficientCapacityException - If the request was to grow, but there is no capacity to grow to
the desired size.java.lang.Integer getCurrentSize()