public class DeltaFIFO extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DeltaFIFO.DeletedFinalStateUnknown<ApiType extends io.kubernetes.client.common.KubernetesObject> |
static class |
DeltaFIFO.DeltaType |
Constructor and Description |
---|
DeltaFIFO(Function<io.kubernetes.client.common.KubernetesObject,String> keyFunc,
Store<? extends io.kubernetes.client.common.KubernetesObject> knownObjects)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(io.kubernetes.client.common.KubernetesObject obj)
Add items to the delta FIFO.
|
void |
delete(io.kubernetes.client.common.KubernetesObject obj)
Delete items from the delta FIFO.
|
Deque<org.apache.commons.lang3.tuple.MutablePair<DeltaFIFO.DeltaType,io.kubernetes.client.common.KubernetesObject>> |
get(io.kubernetes.client.common.KubernetesObject obj)
Get object.
|
Deque<org.apache.commons.lang3.tuple.MutablePair<DeltaFIFO.DeltaType,io.kubernetes.client.common.KubernetesObject>> |
getByKey(String key)
Gets get by key.
|
boolean |
hasSynced()
Has synced boolean.
|
List<Deque<org.apache.commons.lang3.tuple.MutablePair<DeltaFIFO.DeltaType,io.kubernetes.client.common.KubernetesObject>>> |
list()
List list.
|
List<String> |
listKeys()
List keys list.
|
Deque<org.apache.commons.lang3.tuple.MutablePair<DeltaFIFO.DeltaType,io.kubernetes.client.common.KubernetesObject>> |
pop(Consumer<Deque<org.apache.commons.lang3.tuple.MutablePair<DeltaFIFO.DeltaType,io.kubernetes.client.common.KubernetesObject>>> func)
Pop deltas.
|
void |
replace(List<io.kubernetes.client.common.KubernetesObject> list,
String resourceVersion)
Replace the item forcibly.
|
void |
resync()
Re-sync the delta FIFO.
|
void |
update(io.kubernetes.client.common.KubernetesObject obj)
Update items in the delta FIFO.
|
public void add(io.kubernetes.client.common.KubernetesObject obj)
obj
- the objpublic void update(io.kubernetes.client.common.KubernetesObject obj)
obj
- the objpublic void delete(io.kubernetes.client.common.KubernetesObject obj)
obj
- the objpublic void replace(List<io.kubernetes.client.common.KubernetesObject> list, String resourceVersion)
list
- the listresourceVersion
- the resource versionpublic void resync()
public Deque<org.apache.commons.lang3.tuple.MutablePair<DeltaFIFO.DeltaType,io.kubernetes.client.common.KubernetesObject>> get(io.kubernetes.client.common.KubernetesObject obj)
obj
- the objpublic Deque<org.apache.commons.lang3.tuple.MutablePair<DeltaFIFO.DeltaType,io.kubernetes.client.common.KubernetesObject>> getByKey(String key)
key
- the keypublic List<Deque<org.apache.commons.lang3.tuple.MutablePair<DeltaFIFO.DeltaType,io.kubernetes.client.common.KubernetesObject>>> list()
public Deque<org.apache.commons.lang3.tuple.MutablePair<DeltaFIFO.DeltaType,io.kubernetes.client.common.KubernetesObject>> pop(Consumer<Deque<org.apache.commons.lang3.tuple.MutablePair<DeltaFIFO.DeltaType,io.kubernetes.client.common.KubernetesObject>>> func) throws InterruptedException
func
- the funcException
- the exceptionInterruptedException
public boolean hasSynced()
Copyright © 2022. All rights reserved.