Review this Java rate-limiter counter that uses atomics.
Does the use of AtomicInteger make this thread-safe?