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 boolean
equals(Object obj)
@NonNull ClientIdentifier
getClientId()
long
getCookie()
long
getHistoryId()
int
hashCode()
static @NonNull LocalHistoryIdentifier
readFrom(DataInput in)
String
toString()
void
writeTo(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:
writeTo
in interfaceWritableObject
- Throws:
IOException
-
getClientId
public @NonNull ClientIdentifier getClientId()
-
getHistoryId
public long getHistoryId()
-
getCookie
public long getCookie()
-
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
-
toString
public String toString()
- Specified by:
toString
in interfaceIdentifier
- Overrides:
toString
in classObject
-
-