Modifier and Type | Method and Description |
---|---|
void |
add(ApiType obj)
add inserts an item into the store.
|
void |
delete(ApiType obj)
delete removes an item from the store.
|
Object |
get(ApiType obj)
get returns the requested item.
|
ApiType |
getByKey(String key)
getByKey returns the request item with specific key.
|
List<ApiType> |
list()
list returns a list of all the items.
|
List<String> |
listKeys()
listKeys returns a list of all the keys of the object currently in the store.
|
void |
replace(List<ApiType> list,
String resourceVersion)
Replace will delete the contents of 'c', using instead the given list.
|
void |
resync()
resync will send a resync event for each item.
|
void |
update(ApiType obj)
update sets an item in the store to its updated state.
|
void add(ApiType obj)
obj
- specific objvoid update(ApiType obj)
obj
- specific objvoid delete(ApiType obj)
obj
- specific objvoid replace(List<ApiType> list, String resourceVersion)
list
- list of objectsresourceVersion
- specific resource versionvoid resync()
List<String> listKeys()
Object get(ApiType obj)
obj
- specific objApiType getByKey(String key)
key
- specific keyCopyright © 2021. All rights reserved.