public interface PollingCache<K,V>
Modifier and Type | Method and Description |
---|---|
void |
close()
close and clean the resources used by the cache
|
V |
get(K key) |
List<K> |
getKeys(V value) |
V get(K key)
key
- Given key to lookup its value from the cache.key
or null
if no value exist.List<K> getKeys(V value)
value
- Given value to reverse lookup its keys.List
of keys associated to the given value
otherwise Collections.EmptyList
void close()
Copyright © 2011–2018. All rights reserved.