Class Caches
java.lang.Object
io.kubernetes.client.informer.cache.Caches
A set of helper utilities for constructing a cache.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringNAMESPACE_INDEX is the default index function for caching objects -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <ApiType extends io.kubernetes.client.common.KubernetesObject>
StringdeletionHandlingMetaNamespaceKeyFunc(ApiType object) deletionHandlingMetaNamespaceKeyFunc checks for DeletedFinalStateUnknown objects before calling metaNamespaceKeyFunc.metaNamespaceIndexFunc(io.kubernetes.client.common.KubernetesObject obj) metaNamespaceIndexFunc is a default index function that indexes based on an object's namespace.static StringmetaNamespaceKeyFunc(io.kubernetes.client.common.KubernetesObject obj) MetaNamespaceKeyFunc is a convenient default KeyFunc which knows how to make keys for API objects which implement HasMetadata Interface.
-
Field Details
-
NAMESPACE_INDEX
NAMESPACE_INDEX is the default index function for caching objects- See Also:
-
-
Constructor Details
-
Caches
public Caches()
-
-
Method Details
-
deletionHandlingMetaNamespaceKeyFunc
public static <ApiType extends io.kubernetes.client.common.KubernetesObject> String deletionHandlingMetaNamespaceKeyFunc(ApiType object) deletionHandlingMetaNamespaceKeyFunc checks for DeletedFinalStateUnknown objects before calling metaNamespaceKeyFunc.- Type Parameters:
ApiType- the type parameter- Parameters:
object- specific object- Returns:
- the key
-
metaNamespaceKeyFunc
MetaNamespaceKeyFunc is a convenient default KeyFunc which knows how to make keys for API objects which implement HasMetadata Interface. The key uses the format/ unless is empty, then it's just . - Parameters:
obj- specific object- Returns:
- the key
-
metaNamespaceIndexFunc
metaNamespaceIndexFunc is a default index function that indexes based on an object's namespace.- Parameters:
obj- specific object- Returns:
- the indexed value
-