Record Class MQTTActivity.Entry

java.lang.Object
java.lang.Record
ecmwf.ecpds.master.MQTTActivity.Entry
All Implemented Interfaces:
Serializable
Enclosing class:
MQTTActivity

public static record MQTTActivity.Entry(long id, long transferId, String destination, String filename, long queuedAt, long startedAt, long updatedAt, String status, String topic, int qos, boolean retain, long payloadBytes, String contentType, String reason, int attempts, List<MQTTActivity.Broker> brokers) extends Record implements Serializable
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Entry(long id, long transferId, String destination, String filename, long queuedAt, long startedAt, long updatedAt, String status, String topic, int qos, boolean retain, long payloadBytes, String contentType, String reason, int attempts, List<MQTTActivity.Broker> brokers)
    Creates an instance of a Entry record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the attempts record component.
    Returns the value of the brokers record component.
    Returns the value of the contentType record component.
    Returns the value of the destination record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the filename record component.
    final int
    Returns a hash code value for this object.
    long
    id()
    Returns the value of the id record component.
    long
    Returns the value of the payloadBytes record component.
    int
    qos()
    Returns the value of the qos record component.
    long
    Returns the value of the queuedAt record component.
    Returns the value of the reason record component.
    boolean
    Returns the value of the retain record component.
    long
    Returns the value of the startedAt record component.
    Returns the value of the status record component.
    Returns the value of the topic record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the transferId record component.
    long
    Returns the value of the updatedAt record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Entry

      public Entry(long id, long transferId, String destination, String filename, long queuedAt, long startedAt, long updatedAt, String status, String topic, int qos, boolean retain, long payloadBytes, String contentType, String reason, int attempts, List<MQTTActivity.Broker> brokers)
      Creates an instance of a Entry record class.
      Parameters:
      id - the value for the id record component
      transferId - the value for the transferId record component
      destination - the value for the destination record component
      filename - the value for the filename record component
      queuedAt - the value for the queuedAt record component
      startedAt - the value for the startedAt record component
      updatedAt - the value for the updatedAt record component
      status - the value for the status record component
      topic - the value for the topic record component
      qos - the value for the qos record component
      retain - the value for the retain record component
      payloadBytes - the value for the payloadBytes record component
      contentType - the value for the contentType record component
      reason - the value for the reason record component
      attempts - the value for the attempts record component
      brokers - the value for the brokers 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 the compare method from their corresponding wrapper classes.
      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
    • transferId

      public long transferId()
      Returns the value of the transferId record component.
      Returns:
      the value of the transferId record component
    • destination

      public String destination()
      Returns the value of the destination record component.
      Returns:
      the value of the destination record component
    • filename

      public String filename()
      Returns the value of the filename record component.
      Returns:
      the value of the filename record component
    • queuedAt

      public long queuedAt()
      Returns the value of the queuedAt record component.
      Returns:
      the value of the queuedAt record component
    • startedAt

      public long startedAt()
      Returns the value of the startedAt record component.
      Returns:
      the value of the startedAt record component
    • updatedAt

      public long updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • topic

      public String topic()
      Returns the value of the topic record component.
      Returns:
      the value of the topic record component
    • qos

      public int qos()
      Returns the value of the qos record component.
      Returns:
      the value of the qos record component
    • retain

      public boolean retain()
      Returns the value of the retain record component.
      Returns:
      the value of the retain record component
    • payloadBytes

      public long payloadBytes()
      Returns the value of the payloadBytes record component.
      Returns:
      the value of the payloadBytes record component
    • contentType

      public String contentType()
      Returns the value of the contentType record component.
      Returns:
      the value of the contentType record component
    • reason

      public String reason()
      Returns the value of the reason record component.
      Returns:
      the value of the reason record component
    • attempts

      public int attempts()
      Returns the value of the attempts record component.
      Returns:
      the value of the attempts record component
    • brokers

      public List<MQTTActivity.Broker> brokers()
      Returns the value of the brokers record component.
      Returns:
      the value of the brokers record component