Typical lock-service state machine
- lock create, acquire, renew, and release commands
- owner identity, fencing token, and expiry metadata
- wait queues or lock-scoped sequencing state
- explicit revocation or timeout transitions
MicroRaft can back a Java distributed lock service when lock ownership, fencing, and failover semantics must stay strongly consistent under partition and recovery.