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)
Store
public void delete(T obj)
Store
public List<T> list()
Store
public List<String> listKeys()
Store
public Object get(T object)
Store
public T getByKey(String key)
Store
public void replace(List<T> list, String resourceVersion)
Store
public void resync()
Store
public void isPopulated(boolean isPopulated)
Store
isPopulated
in interface Store<T>
isPopulated
- boolean value indicating whether cache is populated or notCopyright © 2015–2021 Red Hat. All rights reserved.