java.lang.Object
org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier
All Implemented Interfaces:
Serializable, org.opendaylight.yangtools.concepts.Identifier, org.opendaylight.yangtools.concepts.Immutable, org.opendaylight.yangtools.concepts.WritableIdentifier, org.opendaylight.yangtools.concepts.WritableObject

public final class LocalHistoryIdentifier extends Object implements org.opendaylight.yangtools.concepts.WritableIdentifier
Globally-unique identifier of a local history. This identifier is assigned on the frontend and is composed of - a ClientIdentifier, which uniquely identifies a single instantiation of a particular frontend - an unsigned long, which uniquely identifies the history on the backend - an unsigned long cookie, assigned by the client and meaningless on the backend, which just reflects it back
See Also:
  • Constructor Details

    • LocalHistoryIdentifier

      public LocalHistoryIdentifier(ClientIdentifier frontendId, long historyId)
    • LocalHistoryIdentifier

      public LocalHistoryIdentifier(ClientIdentifier frontendId, long historyId, long cookie)
  • Method Details

    • readFrom

      public static @NonNull LocalHistoryIdentifier readFrom(DataInput in) throws IOException
      Throws:
      IOException
    • writeTo

      public void writeTo(DataOutput out) throws IOException
      Specified by:
      writeTo in interface org.opendaylight.yangtools.concepts.WritableObject
      Throws:
      IOException
    • getClientId

      public @NonNull ClientIdentifier getClientId()
    • getHistoryId

      public long getHistoryId()
    • getCookie

      public long getCookie()
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface org.opendaylight.yangtools.concepts.Identifier
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface org.opendaylight.yangtools.concepts.Identifier
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Specified by:
      toString in interface org.opendaylight.yangtools.concepts.Identifier
      Overrides:
      toString in class Object