Class Caches

java.lang.Object
io.kubernetes.client.informer.cache.Caches

public class Caches extends Object
A set of helper utilities for constructing a cache.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    NAMESPACE_INDEX is the default index function for caching objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <ApiType extends io.kubernetes.client.common.KubernetesObject>
    String
    deletionHandlingMetaNamespaceKeyFunc checks for DeletedFinalStateUnknown objects before calling metaNamespaceKeyFunc.
    static List<String>
    metaNamespaceIndexFunc(io.kubernetes.client.common.KubernetesObject obj)
    metaNamespaceIndexFunc is a default index function that indexes based on an object's namespace.
    static String
    metaNamespaceKeyFunc(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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NAMESPACE_INDEX

      public static final String 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

      public static String metaNamespaceKeyFunc(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. The key uses the format / unless is empty, then it's just .
      Parameters:
      obj - specific object
      Returns:
      the key
    • metaNamespaceIndexFunc

      public static List<String> metaNamespaceIndexFunc(io.kubernetes.client.common.KubernetesObject obj)
      metaNamespaceIndexFunc is a default index function that indexes based on an object's namespace.
      Parameters:
      obj - specific object
      Returns:
      the indexed value