I have a script when I need to write to Channel. If it cannot receive additional data (due to the fact that the buffers are full, etc.), I need to stop recording, but you need to resume work as soon as the channel becomes available for recording again. How to determine this moment when the channel will again be available for recording? Is there a callback event that I can override? I am expanding SimpleChannelUpstreamHandlerin my business handler - he has a method channelInterestChanged()- but not sure if this is the right hook?
I was hoping to avoid using primitive thread-based wait mechanisms, such as wait-notify, as they would include context switching. Any non-blocking way to achieve this expectation?
source
share