Modifier and Type | Method and Description |
---|---|
protected void |
cacheMiss(Object key) |
void |
clear()
Clear the
Registry , resetting its state and calling Registration.cancel() for any active Registration . |
Iterator<Registration<K,? extends V>> |
iterator() |
Registration<K,V> |
register(Selector<K> sel,
V obj)
Assign the given
Selector with the given object. |
List<Registration<K,? extends V>> |
select(K key)
|
boolean |
unregister(K key)
Remove any objects matching this
key . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Registration<K,V> register(Selector<K> sel, V obj)
Registry
Selector
with the given object.public boolean unregister(K key)
Registry
key
. This will unregister all objects matching the given
key. There's no provision for removing only a specific object.unregister
in interface Registry<K,V>
key
- The key to be matched by the Selectorspublic List<Registration<K,? extends V>> select(K key)
Registry
public void clear()
Registry
Registry
, resetting its state and calling Registration.cancel()
for any active Registration
.public Iterator<Registration<K,? extends V>> iterator()
iterator
in interface Iterable<Registration<K,? extends V>>
protected void cacheMiss(Object key)
Copyright © 2017. All rights reserved.