public interface SyncableStore<T> extends Store<T>
Store, but also has the responsibility of
notifying listeners on all operations.| Modifier and Type | Method and Description |
|---|---|
void |
add(T obj)
Inserts an item into the store
|
void |
delete(T obj)
Removes an item from the store
|
void |
resync()
Sends a resync event for each item.
|
void |
retainAll(Set<String> nextKeys)
Retain only the values with keys in the given set
|
void |
update(List<T> items)
Process a batch of updates
|
void |
update(T obj)
Sets an item in the store to its updated state.
|
void add(T obj)
obj - objectvoid update(T obj)
obj - objectvoid delete(T obj)
obj - objectvoid resync()
void retainAll(Set<String> nextKeys)
nextKeys - to retainCopyright © 2015–2023 Red Hat. All rights reserved.