Searched defs:clock (Results 1 - 10 of 10) sorted by relevance

/forgerock/openam-v13/openam-core/src/main/java/org/forgerock/openam/session/blacklist/
H A DCachingSessionBlacklist.java40 final TimeService clock) {
48 return eldestEntry.getValue() < clock.now() || super.removeEldestEntry(eldestEntry);
39 CachingSessionBlacklist(final SessionBlacklist delegate, final int maxSize, final long purgeDelayMs, final TimeService clock) argument
/forgerock/openam-v13/openam-shared/src/test/java/com/sun/identity/shared/debug/
H A DDebugFileProviderForTest.java29 * Debug file provider with an accelerate clock
34 private TimeService clock; field in class:DebugFileProviderForTest
39 this.clock = accelerateClock;
43 this.clock = accelerateClock;
49 debugFile = new DebugFileImpl(configuration, debugName, clock);
/forgerock/openam-v13/openam-shared/src/test/java/com/sun/identity/shared/timeservice/
H A DAccelerateTimeService.java34 The clock is incremented each time the "now" function is called.
35 By this way, we aren't dependent to the system clock anymore.
41 private AtomicLong clock; field in class:AccelerateTimeService
50 this.clock = new AtomicLong(initTime);
56 // Increment the clock
61 * Increment the accelerate clock
65 return clock.addAndGet(deltaTime);
/forgerock/openam-v13/openam-core-rest/src/test/java/org/forgerock/openam/core/rest/record/
H A DDebugFileProviderForTest.java29 * Debug file provider with an accelerate clock
34 private TimeService clock; field in class:DebugFileProviderForTest
39 this.clock = accelerateClock;
43 this.clock = accelerateClock;
49 debugFile = new DebugFileImpl(configuration, debugName, clock);
/forgerock/openam/openam-shared/src/test/java/com/sun/identity/shared/debug/
H A DDebugFileProviderForTest.java29 * Debug file provider with an accelerate clock
34 private TimeService clock; field in class:DebugFileProviderForTest
39 this.clock = accelerateClock;
43 this.clock = accelerateClock;
49 debugFile = new DebugFileImpl(configuration, debugName, clock);
/forgerock/openam/openam-shared/src/test/java/com/sun/identity/shared/timeservice/
H A DAccelerateTimeService.java34 The clock is incremented each time the "now" function is called.
35 By this way, we aren't dependent to the system clock anymore.
41 private AtomicLong clock; field in class:AccelerateTimeService
50 this.clock = new AtomicLong(initTime);
56 // Increment the clock
61 * Increment the accelerate clock
65 return clock.addAndGet(deltaTime);
/forgerock/openam/openam-core/src/main/java/org/forgerock/openam/blacklist/
H A DCachingBlacklist.java39 CachingBlacklist(Blacklist<T> delegate, int maxSize, long purgeDelayMs, final TimeService clock) { argument
47 return eldestEntry.getValue() < clock.now() || super.removeEldestEntry(eldestEntry);
/forgerock/openam/openam-core-rest/src/test/java/org/forgerock/openam/core/rest/record/
H A DDebugFileProviderForTest.java29 * Debug file provider with an accelerate clock
34 private TimeService clock; field in class:DebugFileProviderForTest
39 this.clock = accelerateClock;
43 this.clock = accelerateClock;
49 debugFile = new DebugFileImpl(configuration, debugName, clock);
/forgerock/openam-v13/openam-shared/src/main/java/com/sun/identity/shared/debug/file/impl/
H A DDebugFileImpl.java64 private final TimeService clock; field in class:DebugFileImpl
99 * @param clock Clock used to generate date
101 public DebugFileImpl(DebugConfiguration configuration, String debugName, TimeService clock) { argument
103 this.clock = clock;
216 fileCreationTime = clock.now();
282 return configuration.getRotationInterval() > 0 && nextRotation <= clock.now();
/forgerock/openam/openam-shared/src/main/java/com/sun/identity/shared/debug/file/impl/
H A DDebugFileImpl.java64 private final TimeService clock; field in class:DebugFileImpl
99 * @param clock Clock used to generate date
101 public DebugFileImpl(DebugConfiguration configuration, String debugName, TimeService clock) { argument
103 this.clock = clock;
230 fileCreationTime = clock.now();
303 return configuration.getRotationInterval() > 0 && nextRotation <= clock.now();

Completed in 81 milliseconds