Skip to content

feat(availability): add the default heartbeat policy - #175

Draft
nickkkccc wants to merge 6 commits into
masterfrom
add-default-policy
Draft

nickkkccc wants to merge 6 commits into
masterfrom
add-default-policy

Conversation

@nickkkccc

@nickkkccc nickkkccc commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Based on #174

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:

 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.
 An implementation of the `AvailabilityPolicy` interface has been
 added; it serves as a redesigned version of the heartbeat mechanism
 used in `PoolEntry`.
- Tests have been added to verify the functionality of the
  DefaultAvailabilityPolicy.
@nickkkccc nickkkccc self-assigned this Nov 17, 2026
@nickkkccc
nickkkccc marked this pull request as draft November 17, 2026 13:58
- Tests have been added to verify the functionality of the
  DefaultAvailabilityPolicy.

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