Record Class CDCHandlerRegistry.HandlerDescriptor
java.lang.Object
java.lang.Record
com.cockroachlabs.data.cdc.handler.CDCHandlerRegistry.HandlerDescriptor
- Enclosing class:
CDCHandlerRegistry
public static record CDCHandlerRegistry.HandlerDescriptor(Object bean, Method method, CockroachDBCDC annotation, CDCHandlerRegistry.SignatureType signatureType, Class<?> entityType, Set<CDCOperationType> allowedOperations)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHandlerDescriptor(Object bean, Method method, CockroachDBCDC annotation, CDCHandlerRegistry.SignatureType signatureType, Class<?> entityType, Set<CDCOperationType> allowedOperations) Creates an instance of aHandlerDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedOperationsrecord component.Returns the value of theannotationrecord component.bean()Returns the value of thebeanrecord component.Class<?> Returns the value of theentityTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.Returns the value of thesignatureTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HandlerDescriptor
public HandlerDescriptor(Object bean, Method method, CockroachDBCDC annotation, CDCHandlerRegistry.SignatureType signatureType, Class<?> entityType, Set<CDCOperationType> allowedOperations) Creates an instance of aHandlerDescriptorrecord class.- Parameters:
bean- the value for thebeanrecord componentmethod- the value for themethodrecord componentannotation- the value for theannotationrecord componentsignatureType- the value for thesignatureTyperecord componententityType- the value for theentityTyperecord componentallowedOperations- the value for theallowedOperationsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
bean
Returns the value of thebeanrecord component.- Returns:
- the value of the
beanrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
annotation
Returns the value of theannotationrecord component.- Returns:
- the value of the
annotationrecord component
-
signatureType
Returns the value of thesignatureTyperecord component.- Returns:
- the value of the
signatureTyperecord component
-
entityType
Returns the value of theentityTyperecord component.- Returns:
- the value of the
entityTyperecord component
-
allowedOperations
Returns the value of theallowedOperationsrecord component.- Returns:
- the value of the
allowedOperationsrecord component
-