Class NopStateMachine
- java.lang.Object
-
- org.apache.camel.component.jgroups.raft.utils.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 Summary
Constructors Constructor Description NopStateMachine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
apply(byte[] bytes, int offset, int length)
void
readContentFrom(DataInput dataInput)
void
writeContentTo(DataOutput dataOutput)
-
-
-
Method Detail
-
apply
public byte[] apply(byte[] bytes, int offset, int length) throws Exception
- Specified by:
apply
in interfaceorg.jgroups.protocols.raft.StateMachine
- Throws:
Exception
-
readContentFrom
public void readContentFrom(DataInput dataInput) throws Exception
- Specified by:
readContentFrom
in interfaceorg.jgroups.protocols.raft.StateMachine
- Throws:
Exception
-
writeContentTo
public void writeContentTo(DataOutput dataOutput) throws Exception
- Specified by:
writeContentTo
in interfaceorg.jgroups.protocols.raft.StateMachine
- Throws:
Exception
-
-