Class NopStateMachine
java.lang.Object
org.apache.camel.component.jgroups.raft.utils.NopStateMachine
- All Implemented Interfaces:
org.jgroups.raft.StateMachine
Implementation of JGroups-raft state machine (
org.jgroups.protocols.raft.StateMachine
) that dose nothing.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
apply
(byte[] data, int offset, int length, boolean serialize_response) void
readContentFrom
(DataInput dataInput) void
writeContentTo
(DataOutput dataOutput)
-
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 interfaceorg.jgroups.raft.StateMachine
- Throws:
Exception
-
readContentFrom
- Specified by:
readContentFrom
in interfaceorg.jgroups.raft.StateMachine
- Throws:
Exception
-
writeContentTo
- Specified by:
writeContentTo
in interfaceorg.jgroups.raft.StateMachine
- Throws:
Exception
-