| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: how many bytes have been added to the pool or -1 if add failed.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)Add an element to the pool. |
| public boolean | Returns: true if there is enough room leftthe key of the element key, Object the value of the element value, Object the element-container object container)Check if there is enough room in the pool to add an element without provoking any eviction |
| public void | |
| public long | Returns: how many bytes have been freed from the pool.number of bytes size)Delete a fixed number of bytes from the pool. |
| public T | |
| public long | |
| public long | |
| public long | Returns: how many bytes this accessor consumes from the pool.Return how many bytes this accessor consumes from the pool. |
| public boolean | Returns: true if the store may contain partially sized objectsCheck if the store may contain elements which the SizeOf engine could not fully size. |
| public long | Returns: the change in size of the pool, orLong#MIN_VALUE if replace failed.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)Delete a fixed number of bytes from the pool with the given objects. |
| public void | |
| public void |
| add | back to summary |
|---|---|
| public long add(Object key, Object value, Object container, boolean force) Add an element to the pool. | |
| canAddWithoutEvicting | back to summary |
|---|---|
| public boolean canAddWithoutEvicting(Object key, Object value, Object container) Check if there is enough room in the pool to add an element without provoking any eviction | |
| clear | back to summary |
|---|---|
| public void clear() Free resources used by this accessor. | |
| delete | back to summary |
|---|---|
| public long delete(long size) throws IllegalArgumentException Delete a fixed number of bytes from the pool.
| |
| getParticipant | back to summary |
|---|---|
| public T getParticipant() Return the store that uses this accessor
| |
| getPoolOccupancy | back to summary |
|---|---|
| public long getPoolOccupancy() Returns the occupied size for this pool.
| |
| getPoolSize | back to summary |
|---|---|
| public long getPoolSize() Returns the size of this pool.
| |
| getSize | back to summary |
|---|---|
| public long getSize() Return how many bytes this accessor consumes from the pool.
| |
| hasAbortedSizeOf | back to summary |
|---|---|
| public boolean hasAbortedSizeOf() 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) Delete a fixed number of bytes from the pool with the given objects.
| |
| setMaxSize | back to summary |
|---|---|
| public void setMaxSize(long newValue) Sets the max size for this pool
| |
| unlink | back to summary |
|---|---|
| public void unlink() unlink this PoolAccessor from its pool. | |