Before Creating the Enhancement Request
Summary
Make HashedWheelTimer parameters configurable in QueueLevelConsumerOrderInfoLockManager via BrokerConfig.
Motivation
The HashedWheelTimer in QueueLevelConsumerOrderInfoLockManager uses hardcoded tick duration (100ms) and default ticksPerWheel (512). These parameters affect timer precision and memory usage but cannot be tuned without code changes.
Describe the Solution You'd Like
Add two fields to BrokerConfig:
- popOrderLockTimerTickMs (default: 100)
- popOrderLockTimerTicksPerWheel (default: 512)
Use them in QueueLevelConsumerOrderInfoLockManager to construct HashedWheelTimer. Defaults preserve backward compatibility.
Describe Alternatives You've Considered
- Keep hardcoded values: simple but inflexible.
- Use system properties: less discoverable and inconsistent with existing config style.
Additional Context
None.
Before Creating the Enhancement Request
Summary
Make HashedWheelTimer parameters configurable in QueueLevelConsumerOrderInfoLockManager via BrokerConfig.
Motivation
The HashedWheelTimer in QueueLevelConsumerOrderInfoLockManager uses hardcoded tick duration (100ms) and default ticksPerWheel (512). These parameters affect timer precision and memory usage but cannot be tuned without code changes.
Describe the Solution You'd Like
Add two fields to BrokerConfig:
Use them in QueueLevelConsumerOrderInfoLockManager to construct HashedWheelTimer. Defaults preserve backward compatibility.
Describe Alternatives You've Considered
Additional Context
None.