java.lang.Object
org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier
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 TransactionIdentifier extends Object implements org.opendaylight.yangtools.concepts.WritableIdentifier
Globally-unique identifier of a transaction.
See Also:
  • Constructor Details

    • TransactionIdentifier

      public TransactionIdentifier(@NonNull LocalHistoryIdentifier historyId, long transactionId)
  • Method Details

    • readFrom

      public static @NonNull TransactionIdentifier 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
    • getHistoryId

      public @NonNull LocalHistoryIdentifier getHistoryId()
    • getTransactionId

      public long getTransactionId()
    • 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
    • toShortString

      public String toShortString()
    • toString

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