Package io.higson.runtime.evict
Interface IdleChecker
- All Known Implementing Classes:
DefaultIdleChecker,NopIdleChecker
public interface IdleChecker
Provides:
1. current time from any clock
2. the strategy for checking if a given cached parameter exceeded idle timeout
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the time from the underlying clock.booleanDecides whether max idle time was exceeded for a provided cached parameter.
-
Method Details
-
clockTime
long clockTime()Returns the time from the underlying clock. This time will be used to update the parameter's last access time. -
idleTimeExceeded
Decides whether max idle time was exceeded for a provided cached parameter.
-