[NETCONF-1199] Use Netty Timer in KeepAliveSalFacade Created: 16/Nov/23 Updated: 21/Nov/23 Resolved: 21/Nov/23 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | netconf-client-mdsal |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.0 |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
We are currently using ScheduledExecutorService to schedule both keepalive tasks and request timeouts. Most of the time we do not these timeouts to actually trigger, which means we end up scheduling/cancelling timeouts quite a bit. In this scenario Netty's HashedWheelTimer offers superior performance, as task cancellation is O(1). Switch to using Netty Timer to schedule timeouts. |