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 keyobject
- 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 Summary
ConstructorDescriptionDeletedFinalStateUnknown
(@NonNull String key, ApiType object) Creates an instance of aDeletedFinalStateUnknown
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Gets api version.getKind()
Gets kind.Gets metadata.final int
hashCode()
Returns a hash code value for this object.@NonNull String
key()
Returns the value of thekey
record component.object()
Returns the value of theobject
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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 interfaceKubernetesObject
- Returns:
- the metadata
-
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 interfaceKubernetesType
- Returns:
- the api version
-
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 interfaceKubernetesType
- Returns:
- the kind
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
object
Returns the value of theobject
record component.- Returns:
- the value of the
object
record component
-