Record Class SendMessageData
java.lang.Object
java.lang.Record
org.apache.catalina.ha.tcp.SendMessageData
-
Constructor Summary
ConstructorsConstructorDescriptionSendMessageData(Object message, Member destination, Exception exception) Creates an instance of aSendMessageDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedestinationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SendMessageData
Creates an instance of aSendMessageDatarecord class.- Parameters:
message- the value for themessagerecord componentdestination- the value for thedestinationrecord componentexception- the value for theexceptionrecord component
-
-
Method Details
-
getDestination
- Returns:
- the destination.
-
getException
- Returns:
- the exception.
-
getMessage
- Returns:
- the message.
-
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). -
message
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
exception
-