code: private static int containingBucket(int token, long interval)
      {
          return (int) ((((long) token - Integer.MIN_VALUE) / interval) * interval + Integer.MIN_VALUE);
      }
docs: Calculate the boundary of the bucket that countain the given token given the token interval.
  @return The token of the bucket boundary.