Record Class BoundTargetHolder
java.lang.Object
java.lang.Record
org.springframework.cloud.stream.binding.BoundTargetHolder
Holds information about the binding targets exposed by the interface proxy, as well
as their status.
Refactored from
BindableProxyFactory.- Since:
- 3.0.0
- Author:
- Original authors in
BindableProxyFactory, Soby Chacko, Omer Celik
-
Constructor Summary
ConstructorsConstructorDescriptionBoundTargetHolder(Object boundTarget, boolean bindable) Creates an instance of aBoundTargetHolderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbindable()Returns the value of thebindablerecord component.Returns the value of theboundTargetrecord 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
-
BoundTargetHolder
Creates an instance of aBoundTargetHolderrecord class.- Parameters:
boundTarget- the value for theboundTargetrecord componentbindable- the value for thebindablerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
boundTarget
Returns the value of theboundTargetrecord component.- Returns:
- the value of the
boundTargetrecord component
-
bindable
public boolean bindable()Returns the value of thebindablerecord component.- Returns:
- the value of the
bindablerecord component
-