Class ClearableLazy.Concurrent<T>

java.lang.Object
net.minecraftforge.common.util.ClearableLazy.Concurrent<T>
All Implemented Interfaces:
Supplier<T>, ClearableLazy<T>, Lazy<T>
Enclosing interface:
ClearableLazy<T>

public static final class ClearableLazy.Concurrent<T> extends Object implements ClearableLazy<T>
Thread-safe implementation.
  • Field Details

    • lock

      private final Object lock
    • supplier

      private final Supplier<T> supplier
    • instance

      private volatile T instance
  • Constructor Details

    • Concurrent

      private Concurrent(Supplier<T> supplier)
  • Method Details