@Test public void testSetSeed() { long current = WriteOrderOracle.next(); current += Integer.MAX_VALUE; WriteOrderOracle.setSeed(current); Assert.assertTrue(WriteOrderOracle.next() > System.currentTimeMillis()); }
public static void setSeed(long highest) { long previous; while(highest > (previous = WRITER_ORDERER.get())) { WRITER_ORDERER.compareAndSet(previous, highest); } }
WriteOrderOracle { public static void setSeed(long highest) { long previous; while(highest > (previous = WRITER_ORDERER.get())) { WRITER_ORDERER.compareAndSet(previous, highest); } } }
WriteOrderOracle { public static void setSeed(long highest) { long previous; while(highest > (previous = WRITER_ORDERER.get())) { WRITER_ORDERER.compareAndSet(previous, highest); } } private  WriteOrderOracle(); }
WriteOrderOracle { public static void setSeed(long highest) { long previous; while(highest > (previous = WRITER_ORDERER.get())) { WRITER_ORDERER.compareAndSet(previous, highest); } } private  WriteOrderOracle(); static void setSeed(long highest); static long next(); }
WriteOrderOracle { public static void setSeed(long highest) { long previous; while(highest > (previous = WRITER_ORDERER.get())) { WRITER_ORDERER.compareAndSet(previous, highest); } } private  WriteOrderOracle(); static void setSeed(long highest); static long next();  }