Class LazyReferenceAdapter<T>

java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.WeakReference<T>
io.atlassian.util.concurrent.LazyReference<T>
com.atlassian.confluence.util.misc.LazyReferenceAdapter<T>
All Implemented Interfaces:
Supplier<T>

public class LazyReferenceAdapter<T> extends io.atlassian.util.concurrent.LazyReference<T>
The adapter from com.atlassian.concurrent to io.atlassian.concurrent. Helps to gradually migrate from com. library to corresponding io. library.
Since:
7.0.1
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.atlassian.util.concurrent.LazyReference

    io.atlassian.util.concurrent.LazyReference.InitializationException
  • Constructor Summary

    Constructors
    Constructor
    Description
    LazyReferenceAdapter(com.atlassian.util.concurrent.LazyReference<T> origin)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected T
     

    Methods inherited from class io.atlassian.util.concurrent.LazyReference

    cancel, get, getInterruptibly, isInitialized

    Methods inherited from class java.lang.ref.Reference

    clear, clone, enqueue, isEnqueued, reachabilityFence, refersTo

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LazyReferenceAdapter

      public LazyReferenceAdapter(com.atlassian.util.concurrent.LazyReference<T> origin)
  • Method Details

    • create

      protected T create() throws Exception
      Specified by:
      create in class io.atlassian.util.concurrent.LazyReference<T>
      Throws:
      Exception