If you have executed whatever you need in onRotary() the goal of the remote is to call this function each 100-150ms and provide the number of clicks encountered in that time period. Once you stop rotating the wheel, you will get an update where clicks is 0.
You can write your own algorithm in to measure 3 clicks in any period of time if you see fit but just know that the remote will notify you of clicks typcially in this timeframe. :)