Record Class FrontendClientMetadata

java.lang.Object
java.lang.Record
org.opendaylight.controller.cluster.datastore.persisted.FrontendClientMetadata
All Implemented Interfaces:
Immutable, WritableObject

public record FrontendClientMetadata(@NonNull ClientIdentifier clientId, @NonNull ImmutableUnsignedLongSet purgedHistories, @NonNull ImmutableList<FrontendHistoryMetadata> currentHistories) extends Record implements Immutable, WritableObject
  • Constructor Details

    • FrontendClientMetadata

      public FrontendClientMetadata(@NonNull ClientIdentifier clientId, @NonNull ImmutableUnsignedLongSet purgedHistories, @NonNull ImmutableList<FrontendHistoryMetadata> currentHistories)
      Creates an instance of a FrontendClientMetadata record class.
      Parameters:
      clientId - the value for the clientId record component
      purgedHistories - the value for the purgedHistories record component
      currentHistories - the value for the currentHistories record component
  • Method Details

    • writeTo

      public void writeTo(DataOutput out) throws IOException
      Specified by:
      writeTo in interface WritableObject
      Throws:
      IOException
    • readFrom

      public static FrontendClientMetadata readFrom(DataInput in) throws IOException
      Throws:
      IOException
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • clientId

      public @NonNull ClientIdentifier clientId()
      Returns the value of the clientId record component.
      Returns:
      the value of the clientId record component
    • purgedHistories

      public @NonNull ImmutableUnsignedLongSet purgedHistories()
      Returns the value of the purgedHistories record component.
      Returns:
      the value of the purgedHistories record component
    • currentHistories

      public @NonNull ImmutableList<FrontendHistoryMetadata> currentHistories()
      Returns the value of the currentHistories record component.
      Returns:
      the value of the currentHistories record component