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:
Serializable
Soft reference with lazy initialization under lock
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractQueuedSynchronizer
AbstractQueuedSynchronizer.ConditionObject -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class LockableObject
isHeldExclusively, lock, tryAcquire, tryRelease, unlockMethods inherited from class AbstractQueuedSynchronizer
acquire, 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 AbstractOwnableSynchronizer
getExclusiveOwnerThread, setExclusiveOwnerThread
-
Constructor Details
-
LazyReference
-
-
Method Details
-
get
-
clear
public void clear() -
initValue
-
toString
- Overrides:
toStringin classAbstractQueuedSynchronizer
-