Class ODistributedRequestId
java.lang.Object
com.orientechnologies.orient.server.distributed.ODistributedRequestId
- All Implemented Interfaces:
OStreamable,Externalizable,Serializable,Comparable
public class ODistributedRequestId
extends Object
implements Comparable, OStreamable, Externalizable
Immutable object representing the distributed request id.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanvoidfromStream(DataInput in) longintinthashCode()voidvoidtoStream(DataOutput out) toString()void
-
Constructor Details
-
ODistributedRequestId
public ODistributedRequestId() -
ODistributedRequestId
public ODistributedRequestId(int iNodeId, long iMessageId)
-
-
Method Details
-
getMessageId
public long getMessageId() -
getNodeId
public int getNodeId() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable
-
hashCode
public int hashCode() -
toStream
- Specified by:
toStreamin interfaceOStreamable- Throws:
IOException
-
fromStream
- Specified by:
fromStreamin interfaceOStreamable- Throws:
IOException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
toString
-