public static AtomicLong nextNumber = new AtomicLong(); // In some thread... long id = nextNumber.incrementAndGet(); ...
確定! 回上一頁