Package org.codehaus.groovy.util
Class LazyReference<T>
java.lang.Object
java.util.concurrent.locks.AbstractOwnableSynchronizer
java.util.concurrent.locks.AbstractQueuedSynchronizer
org.codehaus.groovy.util.LockableObject
org.codehaus.groovy.util.LazyReference<T>
- All Implemented Interfaces:
- java.io.Serializable
public abstract class LazyReference<T> extends LockableObject
Soft reference with lazy initialization under lock
- See Also:
- Serialized Form
- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizerjava.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject
- 
Constructor SummaryConstructors Constructor Description LazyReference(ReferenceBundle bundle)
- 
Method SummaryMethods inherited from class org.codehaus.groovy.util.LockableObjectisHeldExclusively, lock, tryAcquire, tryRelease, unlockMethods inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizeracquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isQueued, owns, release, releaseShared, setState, tryAcquireNanos, tryAcquireShared, tryAcquireSharedNanos, tryReleaseSharedMethods inherited from class java.util.concurrent.locks.AbstractOwnableSynchronizergetExclusiveOwnerThread, setExclusiveOwnerThreadMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
- 
Constructor Details- 
LazyReference
 
- 
- 
Method Details- 
get
- 
clearpublic void clear()
- 
initValue
- 
toStringpublic java.lang.String toString()- Overrides:
- toStringin class- java.util.concurrent.locks.AbstractQueuedSynchronizer
 
 
-