Class NopStateMachine

  • All Implemented Interfaces:
    org.jgroups.protocols.raft.StateMachine

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

      • NopStateMachine

        public NopStateMachine()
    • Method Detail

      • apply

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

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

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