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- Author:
- Robert Varga
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLocalHistoryIdentifier
(ClientIdentifier frontendId, long historyId) LocalHistoryIdentifier
(ClientIdentifier frontendId, long historyId, long cookie) -
Method Summary
Modifier and TypeMethodDescriptionboolean
@NonNull ClientIdentifier
long
long
int
hashCode()
static @NonNull LocalHistoryIdentifier
toString()
void
writeTo
(DataOutput out)
-
Constructor Details
-
LocalHistoryIdentifier
-
LocalHistoryIdentifier
-
-
Method Details
-
readFrom
- Throws:
IOException
-
writeTo
- Specified by:
writeTo
in interfaceWritableObject
- Throws:
IOException
-
getClientId
-
getHistoryId
public long getHistoryId() -
getCookie
public long getCookie() -
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceIdentifier
- Overrides:
hashCode
in classObject
-
equals
- Specified by:
equals
in interfaceIdentifier
- Overrides:
equals
in classObject
-
toString
- Specified by:
toString
in interfaceIdentifier
- Overrides:
toString
in classObject
-