Class LocalHistoryIdentifier
- java.lang.Object
-
- org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier
-
- All Implemented Interfaces:
Serializable,Identifier,Immutable,MutationBehaviour<Immutable>,WritableIdentifier,WritableObject
public final class LocalHistoryIdentifier extends Object implements WritableIdentifier
Globally-unique identifier of a local history. This identifier is assigned on the frontend and is composed of - aClientIdentifier, 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- Author:
- Robert Varga
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocalHistoryIdentifier(ClientIdentifier frontendId, long historyId)LocalHistoryIdentifier(ClientIdentifier frontendId, long historyId, long cookie)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)@NonNull ClientIdentifiergetClientId()longgetCookie()longgetHistoryId()inthashCode()static @NonNull LocalHistoryIdentifierreadFrom(DataInput in)StringtoString()voidwriteTo(DataOutput out)
-
-
-
Constructor Detail
-
LocalHistoryIdentifier
public LocalHistoryIdentifier(ClientIdentifier frontendId, long historyId)
-
LocalHistoryIdentifier
public LocalHistoryIdentifier(ClientIdentifier frontendId, long historyId, long cookie)
-
-
Method Detail
-
readFrom
public static @NonNull LocalHistoryIdentifier readFrom(DataInput in) throws IOException
- Throws:
IOException
-
writeTo
public void writeTo(DataOutput out) throws IOException
- Specified by:
writeToin interfaceWritableObject- Throws:
IOException
-
getClientId
public @NonNull ClientIdentifier getClientId()
-
getHistoryId
public long getHistoryId()
-
getCookie
public long getCookie()
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceIdentifier- Overrides:
hashCodein classObject
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceIdentifier- Overrides:
equalsin classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceIdentifier- Overrides:
toStringin classObject
-
-