Class TransactionIdentifier
- java.lang.Object
-
- org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier
-
- All Implemented Interfaces:
Serializable
,Identifier
,Immutable
,MutationBehaviour<Immutable>
,WritableIdentifier
,WritableObject
@Beta public final class TransactionIdentifier extends Object implements WritableIdentifier
Globally-unique identifier of a transaction.- Author:
- Robert Varga
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TransactionIdentifier(@NonNull LocalHistoryIdentifier historyId, long transactionId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
LocalHistoryIdentifier
getHistoryId()
long
getTransactionId()
int
hashCode()
static TransactionIdentifier
readFrom(DataInput in)
String
toShortString()
String
toString()
void
writeTo(DataOutput out)
-
-
-
Constructor Detail
-
TransactionIdentifier
public TransactionIdentifier(@NonNull LocalHistoryIdentifier historyId, long transactionId)
-
-
Method Detail
-
readFrom
public static TransactionIdentifier readFrom(DataInput in) throws IOException
- Throws:
IOException
-
writeTo
public void writeTo(DataOutput out) throws IOException
- Specified by:
writeTo
in interfaceWritableObject
- Throws:
IOException
-
getHistoryId
public LocalHistoryIdentifier getHistoryId()
-
getTransactionId
public long getTransactionId()
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceIdentifier
- Overrides:
hashCode
in classObject
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceIdentifier
- Overrides:
equals
in classObject
-
toShortString
public String toShortString()
-
toString
public String toString()
- Specified by:
toString
in interfaceIdentifier
- Overrides:
toString
in classObject
-
-