Class StateUpdate

java.lang.Object
org.teamapps.cluster.state.StateUpdate

public class StateUpdate
extends java.lang.Object
  • Constructor Details

    • StateUpdate

      public StateUpdate​(java.lang.String stateMachine, StateUpdateMessage stateUpdateMessage)
    • StateUpdate

      public StateUpdate​(java.lang.String stateMachine, java.util.List<StateUpdateMessage> stateUpdateMessages)
    • StateUpdate

      public StateUpdate​(java.lang.String stateMachine, java.util.List<StateUpdateMessage> stateUpdateMessages, java.util.List<ReplicatedStateTransactionRule> transactionConditions)
    • 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

      public java.util.List<StateUpdateMessage> getUpdateMessages()
    • getTransactionConditions

      public java.util.List<ReplicatedStateTransactionRule> 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