Skip to content

feat(heartbeat): add the HeartbeatStateMachine - #174

Open
nickkkccc wants to merge 3 commits into
masterfrom
add-heartbeat-state-machine
Open

nickkkccc wants to merge 3 commits into
masterfrom
add-heartbeat-state-machine

Conversation

@nickkkccc

@nickkkccc nickkkccc commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

I haven't forgotten about:

  • Tests
  • Changelog
  • Documentation
    • JavaDoc was written
  • Commit messages comply with the guideline
  • Cleanup the code for review. See checklist

Related issues:

@nickkkccc nickkkccc self-assigned this Nov 17, 2026
 An implementation of the `HeartbeatMachine` has been added; it serves
 as a redesigned version of the heartbeat mechanism used in
 `PoolEntry`.

 This implementation utilizes an event-driven state machine based on:
  - `io.tarantool.core.state.AbstractDrainLoopMachine.java`
  - `io.tarantool.core.state.Event`
  - `io.tarantool.core.state.State`
 - Tests have been added to verify the functionality of the
   HeartbeatStateMachine state machine.
 - Added a test class to verify heartbeat window evaluation logic and
   connection state transitions.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant