Interface Lazy.Checker

All Known Implementing Classes:
Lazy.Checker.Default, LazyReferenceManager.Clearer
Enclosing interface:
Lazy<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public static interface Lazy.Checker
  • Method Details

    • beginCheckCycle

      default void beginCheckCycle()
    • check

      boolean check​(Lazy<?> lazyReference)
      Parameters:
      lazyReference - the lazy reference to check against
      Returns:
      if additional checks should be prevented
    • endCheckCycle

      default void endCheckCycle()
    • isValidTimeout

      static boolean isValidTimeout​(long millisecondTimeout)
    • isValidMemoryQuota

      static boolean isValidMemoryQuota​(double memoryQuota)
    • validateTimeout

      static long validateTimeout​(long millisecondTimeout)
    • validateMemoryQuota

      static double validateMemoryQuota​(double memoryQuota)