Package org.teamapps.cluster.state
Class StateUpdate
java.lang.Object
org.teamapps.cluster.state.StateUpdate
public class StateUpdate
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description StateUpdate(java.io.DataInputStream dis, org.teamapps.protocol.schema.ModelRegistry modelRegistry, org.teamapps.protocol.file.FileProvider fileProvider)StateUpdate(java.lang.String stateMachine, java.util.List<StateUpdateMessage> stateUpdateMessages)StateUpdate(java.lang.String stateMachine, StateUpdateMessage stateUpdateMessage) -
Method Summary
Modifier and Type Method Description java.lang.StringgetStateMachine()java.util.List<ReplicatedStateTransactionRule>getTransactionConditions()longgetUpdateId()java.util.List<StateUpdateMessage>getUpdateMessages()voidsetUpdateId(long updateId)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
-
StateUpdate
-
StateUpdate
public StateUpdate(java.lang.String stateMachine, java.util.List<StateUpdateMessage> stateUpdateMessages) -
StateUpdate
public StateUpdate(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
-
getUpdateMessages
-
getTransactionConditions
-
getUpdateId
public long getUpdateId() -
setUpdateId
public void setUpdateId(long updateId) -
getStateMachine
public java.lang.String getStateMachine() -
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
-