Class NopIdleChecker

java.lang.Object
io.higson.runtime.evict.NopIdleChecker
All Implemented Interfaces:
IdleChecker

public class NopIdleChecker extends Object implements IdleChecker
The no-op implementation that never detects the idle timeout.
  • Constructor Details

    • NopIdleChecker

      public NopIdleChecker()
  • Method Details

    • clockTime

      public long clockTime()
      Description copied from interface: IdleChecker
      Returns the time from the underlying clock. This time will be used to update the parameter's last access time.
      Specified by:
      clockTime in interface IdleChecker
    • idleTimeExceeded

      public boolean idleTimeExceeded(PreparedParameter pp)
      Description copied from interface: IdleChecker
      Decides whether max idle time was exceeded for a provided cached parameter.
      Specified by:
      idleTimeExceeded in interface IdleChecker
    • getInstance

      public static NopIdleChecker getInstance()