Package org.teamapps.cluster.state
Class StateUpdateMessage
java.lang.Object
org.teamapps.cluster.state.StateUpdateMessage
public class StateUpdateMessage
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description StateUpdateMessage(java.io.DataInputStream dis, org.teamapps.protocol.schema.ModelRegistry modelRegistry, org.teamapps.protocol.file.FileProvider fileProvider)StateUpdateMessage(java.lang.String subStateId, ChangeOperation operation, java.lang.String identifier, org.teamapps.protocol.schema.MessageObject message) -
Method Summary
Modifier and Type Method Description java.lang.StringgetIdentifier()org.teamapps.protocol.schema.MessageObjectgetMessage()ChangeOperationgetOperation()java.lang.StringgetSubStateId()byte[]toBytes(org.teamapps.protocol.file.FileSink fileSink)voidwrite(java.io.DataOutputStream dos, org.teamapps.protocol.file.FileSink fileSink)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
StateUpdateMessage
public StateUpdateMessage(java.lang.String subStateId, ChangeOperation operation, java.lang.String identifier, org.teamapps.protocol.schema.MessageObject message) -
StateUpdateMessage
public StateUpdateMessage(java.io.DataInputStream dis, org.teamapps.protocol.schema.ModelRegistry modelRegistry, org.teamapps.protocol.file.FileProvider fileProvider) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Details
-
getSubStateId
public java.lang.String getSubStateId() -
getOperation
-
getIdentifier
public java.lang.String getIdentifier() -
getMessage
public org.teamapps.protocol.schema.MessageObject getMessage() -
write
public void write(java.io.DataOutputStream dos, org.teamapps.protocol.file.FileSink fileSink) throws java.io.IOException- Throws:
java.io.IOException
-
toBytes
public byte[] toBytes(org.teamapps.protocol.file.FileSink fileSink) throws java.io.IOException- Throws:
java.io.IOException
-