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.
|
java.lang.Object |
get(ApiType obj)
get returns the requested item.
|
ApiType |
getByKey(java.lang.String key)
getByKey returns the request item with specific key.
|
java.util.List<ApiType> |
list()
list returns a list of all the items.
|
java.util.List<java.lang.String> |
listKeys()
listKeys returns a list of all the keys of the object currently in the store.
|
void |
replace(java.util.List<ApiType> list,
java.lang.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(java.util.List<ApiType> list, java.lang.String resourceVersion)
list
- list of objectsresourceVersion
- specific resource versionvoid resync()
java.util.List<java.lang.String> listKeys()
java.lang.Object get(ApiType obj)
obj
- specific objApiType getByKey(java.lang.String key)
key
- specific keyjava.util.List<ApiType> list()
Copyright © 2020. All rights reserved.