Interface RefreshPolicy

  • All Known Implementing Classes:
    TimeoutRefresh

    @NotThreadSafe
    public interface RefreshPolicy
    Policy for determining whether a refresh should be performed. Calls to attempt return immediately and do not sleep until refresh.
    • Method Detail

      • attempt

        boolean attempt()
        Checks if it is time to perform the next refresh and returns immediately.
        Returns:
        whether a refresh should be performed