Record Class InvocationResult
java.lang.Object
java.lang.Record
org.springframework.kafka.listener.adapter.InvocationResult
- Record Components:
result- the result.sendTo- the expression about sends topic.messageReturnType- the message return type.
public record InvocationResult(@Nullable Object result, @Nullable Expression sendTo, boolean messageReturnType)
extends Record
The result of a method invocation.
- Since:
- 2.2
- Author:
- Gary Russell
-
Constructor Summary
ConstructorsConstructorDescriptionInvocationResult(@Nullable Object result, @Nullable Expression sendTo, boolean messageReturnType) Creates an instance of aInvocationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themessageReturnTyperecord component.@Nullable Objectresult()Returns the value of theresultrecord component.@Nullable ExpressionsendTo()Returns the value of thesendTorecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
InvocationResult
public InvocationResult(@Nullable Object result, @Nullable Expression sendTo, boolean messageReturnType) Creates an instance of aInvocationResultrecord class.- Parameters:
result- the value for theresultrecord componentsendTo- the value for thesendTorecord componentmessageReturnType- the value for themessageReturnTyperecord 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. -
result
-
sendTo
-
messageReturnType
public boolean messageReturnType()Returns the value of themessageReturnTyperecord component.- Returns:
- the value of the
messageReturnTyperecord component
-