Class NopStateMachine

java.lang.Object
org.apache.camel.component.jgroups.raft.utils.NopStateMachine
All Implemented Interfaces:
org.jgroups.raft.StateMachine

public class NopStateMachine extends Object implements org.jgroups.raft.StateMachine
Implementation of JGroups-raft state machine (org.jgroups.protocols.raft.StateMachine) that dose nothing.
  • Constructor Details

    • NopStateMachine

      public NopStateMachine()
  • Method Details

    • apply

      public byte[] apply(byte[] data, int offset, int length, boolean serialize_response) throws Exception
      Specified by:
      apply in interface org.jgroups.raft.StateMachine
      Throws:
      Exception
    • readContentFrom

      public void readContentFrom(DataInput dataInput) throws Exception
      Specified by:
      readContentFrom in interface org.jgroups.raft.StateMachine
      Throws:
      Exception
    • writeContentTo

      public void writeContentTo(DataOutput dataOutput) throws Exception
      Specified by:
      writeContentTo in interface org.jgroups.raft.StateMachine
      Throws:
      Exception