Record Class DeletedFinalStateUnknown<ApiType extends KubernetesObject>

java.lang.Object
java.lang.Record
io.micronaut.kubernetes.client.openapi.informer.DeletedFinalStateUnknown<ApiType>
Type Parameters:
ApiType - kubernetes api type
Record Components:
key - the object key
object - the kubernetes object
All Implemented Interfaces:
KubernetesObject, KubernetesType

@Internal public record DeletedFinalStateUnknown<ApiType extends KubernetesObject>(@NonNull String key, ApiType extends KubernetesObject object) extends Record implements KubernetesObject
DeletedFinalStateUnknown is placed into a DeltaFIFO in the case where an object was deleted but the watch deletion event was missed. In this case we don't know the final "resting" state of the object, so there is a chance the included object is stale.
  • Constructor Details

    • DeletedFinalStateUnknown

      public DeletedFinalStateUnknown(@NonNull @NonNull String key, @Nullable ApiType object)
      Creates an instance of a DeletedFinalStateUnknown record class.
      Parameters:
      key - the value for the key record component
      object - the value for the object record component
  • Method Details

    • getMetadata

      public V1ObjectMeta getMetadata()
      Description copied from interface: KubernetesObject
      Gets metadata.

      ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

      Specified by:
      getMetadata in interface KubernetesObject
      Returns:
      the metadata
    • getApiVersion

      public String getApiVersion()
      Description copied from interface: KubernetesType
      Gets api version.

      APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: Resources

      Specified by:
      getApiVersion in interface KubernetesType
      Returns:
      the api version
    • getKind

      public String getKind()
      Description copied from interface: KubernetesType
      Gets kind.

      Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: Types (Kinds)

      Specified by:
      getKind in interface KubernetesType
      Returns:
      the kind
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • key

      @NonNull public @NonNull String key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • object

      @Nullable public ApiType object()
      Returns the value of the object record component.
      Returns:
      the value of the object record component