Package org.apache.catalina.ha.tcp
Record Class SendMessageData
java.lang.Object
java.lang.Record
org.apache.catalina.ha.tcp.SendMessageData
- Record Components:
message- The message that was sentdestination- The destination of the messageexception- The exception, if any, when attempting to send the message
public record SendMessageData(Object message, Member destination, Exception exception)
extends Record
- Author:
- Peter Rossbach
-
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
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). -
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
exception
Returns the value of theexceptionrecord component.- Returns:
- the value of the
exceptionrecord component
-