| Modifier and Type | Class and Description |
|---|---|
| private class | BalancedAccessEvictor.EvictionCostComparator
Comparator used to rank the stores in order of eviction 'cost'. |
| Modifier and Type | Field and Description |
|---|---|
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private float | |
| public boolean | freeSpace(Collection<PoolAccessor<PoolParticipant>>
a collection of resources to free from from, long the number of bytes to free up bytes)Implements net. |
| private long |
| SAMPLE_SIZE | back to summary |
|---|---|
| private static final int SAMPLE_SIZE | |
| BalancedAccessEvictor | back to summary |
|---|---|
| public BalancedAccessEvictor() | |
| evictionCost | back to summary |
|---|---|
| private float evictionCost(PoolAccessor<T extends PoolParticipant> accessor, long unloadedSize) | |
| freeSpace | back to summary |
|---|---|
| public boolean freeSpace(Collection<PoolAccessor<PoolParticipant>> from, long bytes) Implements net. Doc from net. Free at least N bytes from a collection of resources
| |
| getDesiredUnloadedSize | back to summary |
|---|---|
| private long getDesiredUnloadedSize(Collection<PoolAccessor<T extends PoolParticipant>> from) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(PoolAccessor<T extends PoolParticipant>
the first object to be compared. s1, PoolAccessor<T extends PoolParticipant> the second object to be compared. s2)Implements java. |
| evictionCostCache | back to summary |
|---|---|
| private final Map<PoolAccessor<T extends PoolParticipant>, Float> evictionCostCache | |
| unloadedSize | back to summary |
|---|---|
| private final long unloadedSize | |
| EvictionCostComparator | back to summary |
|---|---|
| public EvictionCostComparator(long unloadedSize, int collectionSize) | |
| compare | back to summary |
|---|---|
| public int compare(PoolAccessor<T extends PoolParticipant> s1, PoolAccessor<T extends PoolParticipant> s2) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |