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 aSendMessageData
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedestination
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexception
record component.final int
hashCode()
Returns a hash code value for this object.message()
Returns the value of themessage
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SendMessageData
Creates an instance of aSendMessageData
record class.- Parameters:
message
- the value for themessage
record componentdestination
- the value for thedestination
record componentexception
- the value for theexception
record 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 thedestination
record component.- Returns:
- the value of the
destination
record component
-
exception
-