Package io.higson.runtime.evict
Class NopIdleChecker
java.lang.Object
io.higson.runtime.evict.NopIdleChecker
- All Implemented Interfaces:
IdleChecker
The no-op implementation that never detects the idle timeout.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the time from the underlying clock.static NopIdleCheckerbooleanDecides whether max idle time was exceeded for a provided cached parameter.
-
Constructor Details
-
NopIdleChecker
public NopIdleChecker()
-
-
Method Details
-
clockTime
public long clockTime()Description copied from interface:IdleCheckerReturns the time from the underlying clock. This time will be used to update the parameter's last access time.- Specified by:
clockTimein interfaceIdleChecker
-
idleTimeExceeded
Description copied from interface:IdleCheckerDecides whether max idle time was exceeded for a provided cached parameter.- Specified by:
idleTimeExceededin interfaceIdleChecker
-
getInstance
-