AuthoritativeTier.
An important contract here is that a value being faulted in get is to be entirely faulted in before it
can become an eviction candidate, i.e. this cache can never evict mappings being faulted in
| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public boolean | contains(K key)
Deprecated
This should go away once the stats are in
As the method is only there to know what tier the key is going to be fetched from
|
| public V | |
| public Policy | Returns: the policy
Deprecated
queries the potential eviction policy for the heap caching tier
|
| public int | Returns: the count of entries held in heap
Deprecated
Can we avoid having this somehow ?
|
| public long | |
| public int | Returns: the count of entries held off heap
Deprecated
Can we avoid having this somehow ?
|
| public long | |
| public long | |
| public boolean | Returns: true if values should be loaded on putReturns |
| public void | |
| public V | Returns: the value removed, null if nonethe key to the mapping to remove key)Removes the mapping associated to the key passed in |
| public void | setEvictionPolicy(Policy
the policy to use policy)
Deprecated
sets the eviction policy on the heap caching tier
|
| addListener | back to summary |
|---|---|
| public void addListener(CachingTier. Adds a
| |
| clear | back to summary |
|---|---|
| public void clear() Clears the cache... Doesn't notify any listeners | |
| clearAndNotify | back to summary |
|---|---|
| public void clearAndNotify() Clears the cache notifying listeners | |
| contains | back to summary |
|---|---|
| public boolean contains(K key)
Deprecated
This should go away once the stats are in As the method is only there to know what tier the key is going to be fetched from
| |
| get | back to summary |
|---|---|
| public V get(K key, Callable<V> source, boolean updateStats) Returns the value associated with the key, or populates the mapping using the Callable instance
| |
| getEvictionPolicy | back to summary |
|---|---|
| public Policy getEvictionPolicy()
Deprecated
queries the potential eviction policy for the heap caching tier
| |
| getInMemorySize | back to summary |
|---|---|
| public int getInMemorySize()
Deprecated
Can we avoid having this somehow ?
| |
| getInMemorySizeInBytes | back to summary |
|---|---|
| public long getInMemorySizeInBytes()
Deprecated
CacheTier could keep hold of the PoolAccessors for each tier... But what about non pooled resources ?
| |
| getOffHeapSize | back to summary |
|---|---|
| public int getOffHeapSize()
Deprecated
Can we avoid having this somehow ?
| |
| getOffHeapSizeInBytes | back to summary |
|---|---|
| public long getOffHeapSizeInBytes()
Deprecated
CacheTier could keep hold of the PoolAccessors for each tier... But what about non pooled resources ?
| |
| getOnDiskSizeInBytes | back to summary |
|---|---|
| public long getOnDiskSizeInBytes()
Deprecated
CacheTier could keep hold of the PoolAccessors for each tier... But what about non pooled resources ?
| |
| loadOnPut | back to summary |
|---|---|
| public boolean loadOnPut() Returns This may be a dynamic decision, based for example on the occupancy of the cache.
| |
| recalculateSize | back to summary |
|---|---|
| public void recalculateSize(K key)
Deprecated
This is evil! Don't call this!
| |
| remove | back to summary |
|---|---|
| public V remove(K key) Removes the mapping associated to the key passed in
| |
| setEvictionPolicy | back to summary |
|---|---|
| public void setEvictionPolicy(Policy policy)
Deprecated
sets the eviction policy on the heap caching tier
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| evicted | back to summary |
|---|---|
| public void evicted(K key, V value) Invoked when a mapping is evicted.
| |