Record Class BinderWrapper
java.lang.Object
java.lang.Record
org.springframework.cloud.stream.binder.BinderWrapper
-
Constructor Summary
ConstructorsConstructorDescriptionBinderWrapper(Binder binder, String destinationName, String cacheKey) Creates an instance of aBinderWrapperrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbinder()Returns the value of thebinderrecord component.cacheKey()Returns the value of thecacheKeyrecord component.Returns the value of thedestinationNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BinderWrapper
Creates an instance of aBinderWrapperrecord class.- Parameters:
binder- the value for thebinderrecord componentdestinationName- the value for thedestinationNamerecord componentcacheKey- the value for thecacheKeyrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
binder
Returns the value of thebinderrecord component.- Returns:
- the value of the
binderrecord component
-
destinationName
Returns the value of thedestinationNamerecord component.- Returns:
- the value of the
destinationNamerecord component
-
cacheKey
Returns the value of thecacheKeyrecord component.- Returns:
- the value of the
cacheKeyrecord component
-