| Constructor and Description |
|---|
ProcessorStore(Store<T> actualStore,
SharedProcessor<T> processor) |
| 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
|
Object |
get(T object)
Returns the requested item.
|
T |
getByKey(String key)
Returns the request item with specific key.
|
boolean |
hasSynced()
true if synced
|
void |
isPopulated(boolean isPopulated)
Updates the status of cache in case of any API error from Kubernetes server
|
List<T> |
list()
Returns a list of all the items.
|
List<String> |
listKeys()
returns a list of all keys of the object currently in the store.
|
void |
replace(List<T> list,
String resourceVersion)
Deletes the contents of the store, using instead the given list.
|
void |
resync()
Sends a resync event for each item.
|
void |
update(T obj)
Sets an item in the store to its updated state.
|
public ProcessorStore(Store<T> actualStore, SharedProcessor<T> processor)
public void update(T obj)
Storepublic void delete(T obj)
Storepublic List<T> list()
Storepublic List<String> listKeys()
Storepublic Object get(T object)
Storepublic T getByKey(String key)
Storepublic void replace(List<T> list, String resourceVersion)
Storepublic void resync()
Storepublic void isPopulated(boolean isPopulated)
StoreisPopulated in interface Store<T>isPopulated - boolean value indicating whether cache is populated or notCopyright © 2015–2022 Red Hat. All rights reserved.