org.jtoolkit.essence.data
Interface Store<K,V>
- All Superinterfaces:
- java.io.Closeable, Event.Listenable, Named, Visitor.Visitable<Store<K,V>>
public interface Store<K,V>
- extends Event.Listenable, Closeable, Named, Visitor.Visitable<Store<K,V>>
- Author:
- Peter Lawrey
| Fields inherited from interface org.jtoolkit.essence.utils.Closeable |
CLOSED |
| Methods inherited from interface org.jtoolkit.essence.utils.Named |
getName |
getCluster
@Nullable
Cluster getCluster()
- Returns:
- The cluster this store is a member of.
getListenerSet
@NotNull
Event.ListenerSet getListenerSet()
- Set to add/remove event listeners and event handlers to/from
- Specified by:
getListenerSet in interface Event.Listenable
- Returns:
- This object has a set of listeners.
getCacheView
@NotNull
javax.cache.Cache<K,V> getCacheView()
- Returns:
- The contents of this Store as a Map.
getMapView
@NotNull
java.util.concurrent.ConcurrentMap<K,V> getMapView()
- Returns:
- The contents of this Store as a Map.
getQueueView
@NotNull
java.util.Queue<V> getQueueView()
- Returns:
- The contents of this Store as a Queue.
asMap
@NotNull
java.util.Map<K,V> asMap()
- Returns:
- A snap shot copy of the Store.
selectMatching
java.util.Map<K,V> selectMatching(Predicate<java.util.Map.Entry<K,V>> predicate)
- Returns:
- The matching results.
removeMatching
int removeMatching(Predicate<java.util.Map.Entry<K,V>> predicate)
Copyright © Peter Lawrey. All Rights Reserved.