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 Type
    Method
    Description
    long
    Returns the time from the underlying clock.
    boolean
    Decides 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

      boolean idleTimeExceeded(PreparedParameter pp)
      Decides whether max idle time was exceeded for a provided cached parameter.