Interface Store<ApiType>
- All Known Subinterfaces:
Indexer<ApiType>
- All Known Implementing Classes:
Cache
public interface Store<ApiType>
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd inserts an item into the store.voiddelete removes an item from the store.get returns the requested item.getByKey returns the request item with specific key.list()list returns a list of all the items.listKeys()listKeys returns a list of all the keys of the object currently in the store.voidReplace will delete the contents of 'c', using instead the given list.voidresync()resync will send a resync event for each item.voidupdate sets an item in the store to its updated state.
-
Method Details
-
add
add inserts an item into the store.- Parameters:
obj- specific obj
-
update
update sets an item in the store to its updated state.- Parameters:
obj- specific obj
-
delete
delete removes an item from the store.- Parameters:
obj- specific obj
-
replace
Replace will delete the contents of 'c', using instead the given list.- Parameters:
list- list of objectsresourceVersion- specific resource version
-
resync
void resync()resync will send a resync event for each item. -
listKeys
listKeys returns a list of all the keys of the object currently in the store.- Returns:
- list of all keys
-
get
get returns the requested item.- Parameters:
obj- specific obj- Returns:
- the requested item if exist
-
getByKey
getByKey returns the request item with specific key.- Parameters:
key- specific key- Returns:
- the request item
-
list
list returns a list of all the items.- Returns:
- list of all the items
-