public boolean resetIfNecessary(RateBucketPeriod period) {
        long periodBoundary = getLastPeriodBoundary(period);
        if (System.currentTimeMillis() >= periodBoundary) {
            setCount(0);
            return true;
        }
        return false;
    }
Resets the count if the period boundary has been crossed.  Returns true if the
count was reset to 0 or false otherwise.
@param period the period
gateway/engine/core/src/main/java/io/apiman/gateway/engine/rates/RateLimiterBucket.java