E - The type of the elements.public class CapacityBalancingEvictor<E> extends RecencyEvictor<E>
RecencyEvictor that balances its capacity so that some proportion
of repeatedly added elements is not evicted. This proportion is called
balance.
| Modifier and Type | Class and Description |
|---|---|
static class |
CapacityBalancingEvictor.Builder |
protected static class |
CapacityBalancingEvictor.ProtectedBuilder<B extends CapacityBalancingEvictor.ProtectedBuilder<B>> |
protected class |
CapacityBalancingEvictor.Stats |
stats| Modifier and Type | Method and Description |
|---|---|
void |
add(E element)
Add the provided element.
|
static CapacityBalancingEvictor.Builder |
builder() |
int |
getNumberOfDifferentQueries() |
evict, getCapacity, setCapacity, sizeaddAndEvict, addAndEvict, evict, getStats@Stat(name="nDifferentQueries") public int getNumberOfDifferentQueries()
public static CapacityBalancingEvictor.Builder builder()
Copyright © 2011–2024 Live Ontologies Project. All rights reserved.