Package com.scaleout.client.caching
Class ClientCacheEntryWeigher<K,V>
java.lang.Object
com.scaleout.client.caching.ClientCacheEntryWeigher<K,V>
- Type Parameters:
K
- the key typeV
- the value type
The
ClientCacheEntryWeigher
is used to evaluate a ClientCacheEntry
's weight in the weighted ClientCache
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
evaluateEntryWeight
(ClientCacheEntry<K, V> entry) Evaluates the weight of the entry.
-
Constructor Details
-
ClientCacheEntryWeigher
public ClientCacheEntryWeigher()Default constructor.
-
-
Method Details
-
evaluateEntryWeight
Evaluates the weight of the entry.- Parameters:
entry
- theClientCacheEntry
- Returns:
- the weight of the entry.
-