Package com.cockroachlabs.data.cdc
Record Class CDCEnvelope
java.lang.Object
java.lang.Record
com.cockroachlabs.data.cdc.CDCEnvelope
-
Constructor Summary
ConstructorsConstructorDescriptionCDCEnvelope(List<CDCPayload> payload, int length, String resolved) Creates an instance of aCDCEnveloperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanintlength()Returns the value of thelengthrecord component.payload()Returns the value of thepayloadrecord component.resolved()Returns the value of theresolvedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CDCEnvelope
Creates an instance of aCDCEnveloperecord class.- Parameters:
payload- the value for thepayloadrecord componentlength- the value for thelengthrecord componentresolved- the value for theresolvedrecord component
-
-
Method Details
-
isResolved
public boolean isResolved() -
hasPayload
public boolean hasPayload() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
length
public int length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-
resolved
Returns the value of theresolvedrecord component.- Returns:
- the value of the
resolvedrecord component
-