Class ResetOnFailureResettableLazyReference<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    Supplier<T>

    @ThreadSafe
    public final class ResetOnFailureResettableLazyReference<T>
    extends Object
    implements Supplier<T>
    Resettable reference that doesn't cache failures in create().
    • Constructor Detail

      • ResetOnFailureResettableLazyReference

        public ResetOnFailureResettableLazyReference​(Supplier<T> createFun)
    • Method Detail

      • get

        public T get()
        Specified by:
        get in interface Supplier<T>
      • reset

        public void reset()