Class LocalHistoryIdentifier
java.lang.Object
org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier
- All Implemented Interfaces:
Serializable,Identifier,Immutable,WritableIdentifier,WritableObject
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 Summary
ConstructorsConstructorDescriptionLocalHistoryIdentifier(ClientIdentifier frontendId, long historyId) LocalHistoryIdentifier(ClientIdentifier frontendId, long historyId, long cookie) -
Method Summary
Modifier and TypeMethodDescriptionboolean@NonNull ClientIdentifierlonglonginthashCode()static @NonNull LocalHistoryIdentifiertoString()voidwriteTo(DataOutput out)
-
Constructor Details
-
LocalHistoryIdentifier
-
LocalHistoryIdentifier
-
-
Method Details
-
readFrom
- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWritableObject- Throws:
IOException
-
getClientId
-
getHistoryId
public long getHistoryId() -
getCookie
public long getCookie() -
hashCode
public int hashCode()- Specified by:
hashCodein interfaceIdentifier- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceIdentifier- Overrides:
equalsin classObject
-
toString
- Specified by:
toStringin interfaceIdentifier- Overrides:
toStringin classObject
-