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 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 a Message record class.
      Parameters:
      id - the value for the id record component
      inbound - the value for the inbound record component
      status - the value for the status record component
      test - the value for the test record component
      creationTime - the value for the creationTime record component
      registrationTime - the value for the registrationTime record component
      senderId - the value for the senderId record component
      receiverId - the value for the receiverId record component
      messageId - the value for the messageId record component
      conversationId - the value for the conversationId record component
      sequenceNumber - the value for the sequenceNumber record component
      schemaSet - the value for the schemaSet record component
      messageType - the value for the messageType record component
      transmissionProtocol - the value for the transmissionProtocol record component
      packager - the value for the packager record component
      adapterId - the value for the adapterId record component
      ackReceived - the value for the ackReceived record component
      logInfo - the value for the logInfo record component
      clusterNodeId - the value for the clusterNodeId record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • inbound

      public boolean inbound()
      Returns the value of the inbound record component.
      Returns:
      the value of the inbound record component
    • status

      public Status status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • test

      public boolean test()
      Returns the value of the test record component.
      Returns:
      the value of the test record component
    • creationTime

      public ZonedDateTime creationTime()
      Returns the value of the creationTime record component.
      Returns:
      the value of the creationTime record component
    • registrationTime

      public ZonedDateTime registrationTime()
      Returns the value of the registrationTime record component.
      Returns:
      the value of the registrationTime record component
    • senderId

      public String senderId()
      Returns the value of the senderId record component.
      Returns:
      the value of the senderId record component
    • receiverId

      public String receiverId()
      Returns the value of the receiverId record component.
      Returns:
      the value of the receiverId record component
    • messageId

      public String messageId()
      Returns the value of the messageId record component.
      Returns:
      the value of the messageId record component
    • conversationId

      public String conversationId()
      Returns the value of the conversationId record component.
      Returns:
      the value of the conversationId record component
    • sequenceNumber

      @Nullable public Integer sequenceNumber()
      Returns the value of the sequenceNumber record component.
      Returns:
      the value of the sequenceNumber record component
    • schemaSet

      public String schemaSet()
      Returns the value of the schemaSet record component.
      Returns:
      the value of the schemaSet record component
    • messageType

      public String messageType()
      Returns the value of the messageType record component.
      Returns:
      the value of the messageType record component
    • transmissionProtocol

      public String transmissionProtocol()
      Returns the value of the transmissionProtocol record component.
      Returns:
      the value of the transmissionProtocol record component
    • packager

      public String packager()
      Returns the value of the packager record component.
      Returns:
      the value of the packager record component
    • adapterId

      public String adapterId()
      Returns the value of the adapterId record component.
      Returns:
      the value of the adapterId record component
    • ackReceived

      public boolean ackReceived()
      Returns the value of the ackReceived record component.
      Returns:
      the value of the ackReceived record component
    • logInfo

      public String logInfo()
      Returns the value of the logInfo record component.
      Returns:
      the value of the logInfo record component
    • clusterNodeId

      public Integer clusterNodeId()
      Returns the value of the clusterNodeId record component.
      Returns:
      the value of the clusterNodeId record component