| Modifier and Type | Class and Description |
|---|---|
| private static class | UnboundedPool.UnboundedPoolAccessor
The PoolAccessor class of the UnboundedPool |
| Modifier and Type | Field and Description |
|---|---|
| public static final PoolAccessor | UNBOUNDED_ACCESSOR
An accessor that just is unbounded |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PoolAccessor | createPoolAccessor(PoolParticipant
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)Implements net. |
| public PoolAccessor | createPoolAccessor(PoolParticipant
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)Implements net. |
| public PoolEvictor | getEvictor()
Implements net. |
| public long | |
| public Collection | getPoolAccessors()
Implements net. |
| public long | |
| public void | registerPoolAccessor(PoolAccessor<T extends PoolParticipant>
accessor to be registered accessor)Implements net. |
| public void | removePoolAccessor(PoolAccessor<T extends PoolParticipant>
accessor to be removed accessor)Implements net. |
| public void | setMaxSize(long
the new pool size. newSize)Implements net. |
| UNBOUNDED_ACCESSOR | back to summary |
|---|---|
| public static final PoolAccessor<PoolParticipant> UNBOUNDED_ACCESSOR An accessor that just is unbounded | |
| UnboundedPool | back to summary |
|---|---|
| public UnboundedPool() Create an UnboundedPool instance | |
| createPoolAccessor | back to summary |
|---|---|
| public PoolAccessor Implements net. Doc from net. Return a PoolAccessor whose consumption is tracked by this pool, using a default SizeOf engine.
| |
| createPoolAccessor | back to summary |
|---|---|
| public PoolAccessor Implements net. Doc from net. Return a PoolAccessor whose consumption is tracked by this pool, using a specific SizeOf engine.
| |
| getEvictor | back to summary |
|---|---|
| public PoolEvictor Implements net. Doc from net. Return the pool evictor used by this pool.
| |
| getMaxSize | back to summary |
|---|---|
| public long getMaxSize() Implements net. Doc from net. Return the maximum size of the pool.
| |
| getPoolAccessors | back to summary |
|---|---|
| public Collection Implements net. Doc from net. Return the participants accessing this pool.
| |
| getSize | back to summary |
|---|---|
| public long getSize() Implements net. Doc from net. Return the used size of the pool.
| |
| registerPoolAccessor | back to summary |
|---|---|
| public void registerPoolAccessor(PoolAccessor<T extends PoolParticipant> accessor) Implements net. Doc from net. Register an accessor implementation with this pool.
| |
| removePoolAccessor | back to summary |
|---|---|
| public void removePoolAccessor(PoolAccessor<T extends PoolParticipant> accessor) Implements net. Doc from net. Remove the supplied accessor from this pool.
| |
| setMaxSize | back to summary |
|---|---|
| public void setMaxSize(long newSize) Implements net. Doc from net. Change the maximum size of the pool.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public long | add(Object
the key of the element key, Object the value of the element value, Object the element-container object container, boolean true if the pool should accept adding the element, even if it's out of resources force)Implements net. |
| public boolean | canAddWithoutEvicting(Object
the key of the element key, Object the value of the element value, Object the element-container object container)Implements net. |
| public void | |
| public long | delete(long
number of bytes sizeOf)Implements net. |
| public PoolParticipant | getParticipant()
Implements net. |
| public long | getPoolOccupancy()
Implements net. |
| public long | getPoolSize()
Implements net. |
| public long | getSize()
Implements net. |
| public boolean | hasAbortedSizeOf()
Implements net. |
| public long | replace(long
the size of the object(s) being replaced currentSize, Object the key of the element key, Object the value of the element value, Object the element-container object container, boolean true if the pool should accept replacing the element, even if it's out of resources force)Implements net. |
| public void | setMaxSize(final long
the value in bytes newValue)Implements net. |
| public void |
| UnboundedPoolAccessor | back to summary |
|---|---|
| private UnboundedPoolAccessor() | |
| add | back to summary |
|---|---|
| public long add(Object key, Object value, Object container, boolean force) Implements net. Doc from net. Add an element to the pool. | |
| canAddWithoutEvicting | back to summary |
|---|---|
| public boolean canAddWithoutEvicting(Object key, Object value, Object container) Implements net. Doc from net. Check if there is enough room in the pool to add an element without provoking any eviction | |
| clear | back to summary |
|---|---|
| public void clear() Implements net. Doc from net. Free resources used by this accessor. | |
| delete | back to summary |
|---|---|
| public long delete(long sizeOf) throws IllegalArgumentException Implements net. Doc from net. Delete a fixed number of bytes from the pool.
| |
| getParticipant | back to summary |
|---|---|
| public PoolParticipant getParticipant() Implements net. Doc from net. Return the store that uses this accessor
| |
| getPoolOccupancy | back to summary |
|---|---|
| public long getPoolOccupancy() Implements net. Doc from net. Returns the occupied size for this pool.
| |
| getPoolSize | back to summary |
|---|---|
| public long getPoolSize() Implements net. Doc from net. Returns the size of this pool.
| |
| getSize | back to summary |
|---|---|
| public long getSize() Implements net. Doc from net. Return how many bytes this accessor consumes from the pool.
| |
| hasAbortedSizeOf | back to summary |
|---|---|
| public boolean hasAbortedSizeOf() Implements net. Doc from net. Check if the store may contain elements which the SizeOf engine could not fully size.
| |
| replace | back to summary |
|---|---|
| public long replace(long currentSize, Object key, Object value, Object container, boolean force) Implements net. Doc from net. Delete a fixed number of bytes from the pool with the given objects.
| |
| setMaxSize | back to summary |
|---|---|
| public void setMaxSize(final long newValue) Implements net. Doc from net. Sets the max size for this pool
| |
| unlink | back to summary |
|---|---|
| public void unlink() Implements net. Doc from net. unlink this PoolAccessor from its pool. | |