Class ResetOnFailureResettableLazyReference<T>

java.lang.Object
com.atlassian.bamboo.util.concurrent.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 Details

    • ResetOnFailureResettableLazyReference

      public ResetOnFailureResettableLazyReference(Supplier<T> createFun)
  • Method Details

    • get

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

      public void reset()