private boolean allowedToPoll ( final String bucket ) { Long bucketLastPollTimestamp = lastPollTimestamps . get ( bucket ) ; return bucketLastPollTimestamp == null || ( ( System . nanoTime ( ) - bucketLastPollTimestamp ) >= pollFloorNs ) ; }
Returns true if polling is allowed false if we are below the configured floor poll interval .