Record Class DeleteResult
java.lang.Object
java.lang.Record
io.confluent.kafka.odyssey.DeleteResult
public record DeleteResult(org.apache.kafka.common.Uuid id, String name, OdysseyResult result, boolean associationDeleted)
extends Record
Per-topic outcome of an Odyssey delete request.
Carries the topic id, name, the OdysseyResult of the SR association deletion attempt,
and associationDeleted — whether an SR association was actually removed for this topic.
Topics that bypass SR (no associations) are represented with OdysseyResult.success() and
associationDeleted = false; only a topic whose SR association was successfully removed has
associationDeleted = true. This distinguishes orphan candidates (association removed, so a
failed Kafka delete leaves an orphan) from bypass-SR topics (nothing to orphan).
Returned in input order by OdysseyManager.handleDeleteTopicsWithOdyssey(Map, Set, KafkaPrincipal).
-
Constructor Summary
ConstructorsConstructorDescriptionDeleteResult(org.apache.kafka.common.Uuid id, String name, OdysseyResult result, boolean associationDeleted) Creates an instance of aDeleteResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theassociationDeletedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.apache.kafka.common.Uuidid()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeleteResult
public DeleteResult(org.apache.kafka.common.Uuid id, String name, OdysseyResult result, boolean associationDeleted) Creates an instance of aDeleteResultrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentresult- the value for theresultrecord componentassociationDeleted- the value for theassociationDeletedrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
public org.apache.kafka.common.Uuid id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
associationDeleted
public boolean associationDeleted()Returns the value of theassociationDeletedrecord component.- Returns:
- the value of the
associationDeletedrecord component
-