APISonar


org.infinispan.util.ControlledTimeService.time

> org > infinispan > util > ControlledTimeService > time
org APIs infinispan APIs util APIs ControlledTimeService APIs time APIs

Example 1
private final ControlledTimeService timeService = new ControlledTimeService();

   private void assertStatus(boolean timeout, boolean recoverable, DummyXid... xids) {
      GlobalTxTable globalTxTable = globalTxTable(0);
      for (DummyXid xid : xids) {
         CacheXid cacheXid = new CacheXid(fromString(cacheName()), xid);
         TxState state = globalTxTable.getState(cacheXid);
         assertEquals(recoverable, state.isRecoverable());
         assertEquals(timeout, state.hasTimedOut(timeService.time()));
      }

   }