Record Class ChangefeedInfo
java.lang.Object
java.lang.Record
com.cockroachlabs.data.cdc.factory.ChangefeedInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreated()Returns the value of thecreatedrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longjobId()Returns the value of thejobIdrecord component.modified()Returns the value of themodifiedrecord component.sinkUri()Returns the value of thesinkUrirecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChangefeedInfo
public ChangefeedInfo(long jobId, String status, String description, String sinkUri, Instant created, Instant modified) Creates an instance of aChangefeedInforecord class.- Parameters:
jobId- the value for thejobIdrecord componentstatus- the value for thestatusrecord componentdescription- the value for thedescriptionrecord componentsinkUri- the value for thesinkUrirecord componentcreated- the value for thecreatedrecord componentmodified- the value for themodifiedrecord component
-
-
Method Details
-
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 '=='. -
jobId
public long jobId()Returns the value of thejobIdrecord component.- Returns:
- the value of the
jobIdrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
sinkUri
Returns the value of thesinkUrirecord component.- Returns:
- the value of the
sinkUrirecord component
-
created
Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
modified
Returns the value of themodifiedrecord component.- Returns:
- the value of the
modifiedrecord component
-