| Modifier and Type | Method and Description |
|---|---|
| public PoolAccessor | Returns: a PoolAccessor whose consumption is tracked by this pool.the participant which will use the created accessor. participant, int maximum depth of the object graph to traverse maxDepth, boolean true if the object traversal should be aborted when the max depth is exceeded abortWhenMaxDepthExceeded)Return a PoolAccessor whose consumption is tracked by this pool, using a default SizeOf engine. |
| public PoolAccessor | Returns: a PoolAccessor whose consumption is tracked by this pool.the participant which will use the created accessor. participant, SizeOfEngine the SizeOf engine used to measure the size of objects added through the created accessor. sizeOfEngine)Return a PoolAccessor whose consumption is tracked by this pool, using a specific SizeOf engine. |
| public PoolEvictor | |
| public long | |
| public Collection | |
| public long | |
| public void | registerPoolAccessor(PoolAccessor<T extends PoolParticipant>
accessor to be registered accessor)Register an accessor implementation with this pool. |
| public void | removePoolAccessor(PoolAccessor<T extends PoolParticipant>
accessor to be removed accessor)Remove the supplied accessor from this pool. |
| public void |
| createPoolAccessor | back to summary |
|---|---|
| public PoolAccessor Return a PoolAccessor whose consumption is tracked by this pool, using a default SizeOf engine.
| |
| createPoolAccessor | back to summary |
|---|---|
| public PoolAccessor Return a PoolAccessor whose consumption is tracked by this pool, using a specific SizeOf engine.
| |
| getEvictor | back to summary |
|---|---|
| public PoolEvictor Return the pool evictor used by this pool.
| |
| getMaxSize | back to summary |
|---|---|
| public long getMaxSize() Return the maximum size of the pool.
| |
| getPoolAccessors | back to summary |
|---|---|
| public Collection Return the participants accessing this pool.
| |
| getSize | back to summary |
|---|---|
| public long getSize() Return the used size of the pool.
| |
| registerPoolAccessor | back to summary |
|---|---|
| public void registerPoolAccessor(PoolAccessor<T extends PoolParticipant> accessor) Register an accessor implementation with this pool.
| |
| removePoolAccessor | back to summary |
|---|---|
| public void removePoolAccessor(PoolAccessor<T extends PoolParticipant> accessor) Remove the supplied accessor from this pool.
| |
| setMaxSize | back to summary |
|---|---|
| public void setMaxSize(long newSize) Change the maximum size of the pool.
| |