Class OSyncData
java.lang.Object
com.orientechnologies.orient.distributed.context.coordination.message.OSyncData
- All Implemented Interfaces:
OStructuralMessage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic OSyncDatafromNetwork(DataInput input) byte[]getData()shortgetType()booleanvoidserialize(DataOutput out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.distributed.context.coordination.message.OStructuralMessage
writeNetwork
-
Field Details
-
data
public final byte[] data
-
-
Constructor Details
-
OSyncData
The data need to be immutable, copy it if can mutate before passing- Parameters:
data-
-
-
Method Details
-
execute
- Specified by:
executein interfaceOStructuralMessage
-
serialize
- Specified by:
serializein interfaceOStructuralMessage- Throws:
IOException
-
getType
public short getType()- Specified by:
getTypein interfaceOStructuralMessage
-
fromNetwork
- Throws:
IOException
-
getData
public byte[] getData() -
getSyncId
-
isFinished
public boolean isFinished()
-