private long nextKey() { return _atomicInteger.getAndUpdate( new IntUnaryOperator() { @Override public int applyAsInt(int operand) { if (operand == CALLBACK_SIZE) { return 0; } else { return operand + 1; } } }); }