LazyReference directly instead.@Deprecated public abstract class LazyLoadedReference<V> extends com.atlassian.util.concurrent.LazyReference<V>
final keyword has been used
(you cannot reset it once it has been constructed).
When using this class you need to implement the LazyReference.create() method to
return the object this reference will hold.
For instance:
final LazyLoadedReference ref = new LazyLoadedReference()
{
protected Object create() throws Exception
{
// Do some useful object construction here
return new MyObject();
}
};
Then call to get a reference to the object:
MyObject myLazyLoadedObject = (MyObject) ref.get()Note: Copied from JIRA com.atlassian.jira.util.concurrent.ThreadsafeLazyLoadedReference and modified to use generics and java.util.concurrent.
| Constructor and Description |
|---|
LazyLoadedReference()
Deprecated.
|
cancel, create, get, getInterruptibly, isInitializedclear, enqueue, isEnqueuedCopyright © 2014 Atlassian. All rights reserved.