@Test(groups = "fast") public void testCheckExpirationTimer() throws Exception { final int expirationInMillis = 100000; final ExpirationTimer timer = new ExpirationTimer(expirationInMillis); Assert.assertFalse(timer.isExpired()); Assert.assertTrue(timer.isExpired(System.currentTimeMillis() + expirationInMillis)); Assert.assertFalse(timer.isExpired()); }
public final boolean isExpired() { return isExpired(System.currentTimeMillis()); }
ExpirationTimer { public final boolean isExpired() { return isExpired(System.currentTimeMillis()); } }
ExpirationTimer { public final boolean isExpired() { return isExpired(System.currentTimeMillis()); } ExpirationTimer(final long max); }
ExpirationTimer { public final boolean isExpired() { return isExpired(System.currentTimeMillis()); } ExpirationTimer(final long max); final boolean isExpired(); synchronized boolean isExpired(final long now); }
ExpirationTimer { public final boolean isExpired() { return isExpired(System.currentTimeMillis()); } ExpirationTimer(final long max); final boolean isExpired(); synchronized boolean isExpired(final long now);  }