Record Class Message
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.at.eda.ponton.messenger.client.model.Message
public record Message(long id, boolean inbound, Status status, boolean test, ZonedDateTime creationTime, ZonedDateTime registrationTime, String senderId, String receiverId, String messageId, String conversationId, @Nullable Integer sequenceNumber, String schemaSet, String messageType, String transmissionProtocol, String packager, String adapterId, boolean ackReceived, String logInfo, Integer clusterNodeId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMessage(long id, boolean inbound, Status status, boolean test, ZonedDateTime creationTime, ZonedDateTime registrationTime, String senderId, String receiverId, String messageId, String conversationId, Integer sequenceNumber, String schemaSet, String messageType, String transmissionProtocol, String packager, String adapterId, boolean ackReceived, String logInfo, Integer clusterNodeId) Creates an instance of aMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theackReceivedrecord component.Returns the value of theadapterIdrecord component.Returns the value of theclusterNodeIdrecord component.Returns the value of theconversationIdrecord component.Returns the value of thecreationTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.booleaninbound()Returns the value of theinboundrecord component.logInfo()Returns the value of thelogInforecord component.Returns the value of themessageIdrecord component.Returns the value of themessageTyperecord component.packager()Returns the value of thepackagerrecord component.Returns the value of thereceiverIdrecord component.Returns the value of theregistrationTimerecord component.Returns the value of theschemaSetrecord component.senderId()Returns the value of thesenderIdrecord component.Returns the value of thesequenceNumberrecord component.status()Returns the value of thestatusrecord component.booleantest()Returns the value of thetestrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransmissionProtocolrecord component.
-
Constructor Details
-
Message
public Message(long id, boolean inbound, Status status, boolean test, ZonedDateTime creationTime, ZonedDateTime registrationTime, String senderId, String receiverId, String messageId, String conversationId, @Nullable Integer sequenceNumber, String schemaSet, String messageType, String transmissionProtocol, String packager, String adapterId, boolean ackReceived, String logInfo, Integer clusterNodeId) Creates an instance of aMessagerecord class.- Parameters:
id- the value for theidrecord componentinbound- the value for theinboundrecord componentstatus- the value for thestatusrecord componenttest- the value for thetestrecord componentcreationTime- the value for thecreationTimerecord componentregistrationTime- the value for theregistrationTimerecord componentsenderId- the value for thesenderIdrecord componentreceiverId- the value for thereceiverIdrecord componentmessageId- the value for themessageIdrecord componentconversationId- the value for theconversationIdrecord componentsequenceNumber- the value for thesequenceNumberrecord componentschemaSet- the value for theschemaSetrecord componentmessageType- the value for themessageTyperecord componenttransmissionProtocol- the value for thetransmissionProtocolrecord componentpackager- the value for thepackagerrecord componentadapterId- the value for theadapterIdrecord componentackReceived- the value for theackReceivedrecord componentlogInfo- the value for thelogInforecord componentclusterNodeId- the value for theclusterNodeIdrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
inbound
public boolean inbound()Returns the value of theinboundrecord component.- Returns:
- the value of the
inboundrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
test
public boolean test()Returns the value of thetestrecord component.- Returns:
- the value of the
testrecord component
-
creationTime
Returns the value of thecreationTimerecord component.- Returns:
- the value of the
creationTimerecord component
-
registrationTime
Returns the value of theregistrationTimerecord component.- Returns:
- the value of the
registrationTimerecord component
-
senderId
Returns the value of thesenderIdrecord component.- Returns:
- the value of the
senderIdrecord component
-
receiverId
Returns the value of thereceiverIdrecord component.- Returns:
- the value of the
receiverIdrecord component
-
messageId
Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
conversationId
Returns the value of theconversationIdrecord component.- Returns:
- the value of the
conversationIdrecord component
-
sequenceNumber
Returns the value of thesequenceNumberrecord component.- Returns:
- the value of the
sequenceNumberrecord component
-
schemaSet
Returns the value of theschemaSetrecord component.- Returns:
- the value of the
schemaSetrecord component
-
messageType
Returns the value of themessageTyperecord component.- Returns:
- the value of the
messageTyperecord component
-
transmissionProtocol
Returns the value of thetransmissionProtocolrecord component.- Returns:
- the value of the
transmissionProtocolrecord component
-
packager
Returns the value of thepackagerrecord component.- Returns:
- the value of the
packagerrecord component
-
adapterId
Returns the value of theadapterIdrecord component.- Returns:
- the value of the
adapterIdrecord component
-
ackReceived
public boolean ackReceived()Returns the value of theackReceivedrecord component.- Returns:
- the value of the
ackReceivedrecord component
-
logInfo
Returns the value of thelogInforecord component.- Returns:
- the value of the
logInforecord component
-
clusterNodeId
Returns the value of theclusterNodeIdrecord component.- Returns:
- the value of the
clusterNodeIdrecord component
-