openkit-java icon indicating copy to clipboard operation
openkit-java copied to clipboard

Add a getNumRemainingStatusRequests() function to SessionImpl to get the current integer as it decreases

Open nmontana42 opened this issue 3 months ago • 7 comments

I'm interested in creating a PriorityQueue containing n sessions, prioritized by the remaining status requests. The queue would provide a session that is most likely to be configured and open. At the moment there doesn't seem to be public method that obtains that integer. I believe the closest thing is statically referencing the MAX_STATUS_RETRY int declared inside SessionImpl

This seems more robust than using the most recent timestamp

nmontana42 avatar Mar 21 '24 21:03 nmontana42