Use atomic methods for AtomicInteger and AtomicLong