Module spring.cloud.stream
Record Class BinderWrapper
java.lang.Object
java.lang.Record
org.springframework.cloud.stream.binder.BinderWrapper
Holds information about the binder and channel.
- Author:
- Omer Celik
-
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
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). -
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
-