Poolable interface, which can be extended directly.
It is not strictly necessary to extend this class in order to implement the Poolable
interface, but doing so may make your code simpler.
| Modifier and Type | Field and Description |
|---|---|
| protected final Slot |
| Access | Constructor and Description |
|---|---|
| public | BasePoolable(Slot
The slot)Slot that represents this objects place in the pool.Build a `BasePoolable` for the given slot. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | release()
Implements stormpot. |
| slot | back to summary |
|---|---|
| protected final Slot slot The | |
| BasePoolable | back to summary |
|---|---|
| public BasePoolable(Slot slot) Build a `BasePoolable` for the given slot. | |
| expire | back to summary |
|---|---|
| public void expire() Explicitly expire this object, such that it will not be claimed again once it is released.
| |
| release | back to summary |
|---|---|
| public void release() Implements stormpot. Doc from stormpot. Release this Poolable object back into the pool from where it came,
so that others can claim it, or the pool deallocate it if it has
expired.
A call to this method MUST delegate to a call to
| |