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.String getStateMachine()  
    java.util.List<ReplicatedStateTransactionRule> getTransactionConditions()  
    long getUpdateId()  
    java.util.List<StateUpdateMessage> getUpdateMessages()  
    void setUpdateId​(long updateId)  
    byte[] toBytes​(org.teamapps.protocol.file.FileSink fileSink)  
    void write​(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

      public StateUpdate​(java.lang.String stateMachine, StateUpdateMessage stateUpdateMessage)
    • 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

      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