Groovy 2.2.0

org.codehaus.groovy.util
[Java] Class LazyReference

java.lang.Object
  java.util.concurrent.locks.AbstractOwnableSynchronizer
      java.util.concurrent.locks.AbstractQueuedSynchronizer
          org.codehaus.groovy.util.LockableObject
              org.codehaus.groovy.util.LazyReference

public abstract class LazyReference
extends LockableObject

Soft reference with lazy initialization under lock


Constructor Summary
LazyReference(ReferenceBundle bundle)

 
Method Summary
void clear()

Object get()

Object initValue()

String toString()

 
Methods inherited from class LockableObject
isHeldExclusively, lock, tryAcquire, tryRelease, unlock
 
Methods inherited from class AbstractQueuedSynchronizer
toString, acquireInterruptibly, getQueueLength, getQueuedThreads, getWaitQueueLength, getWaitingThreads, hasQueuedThreads, hasWaiters, isQueued, release, tryAcquireNanos, acquire, acquireShared, acquireSharedInterruptibly, getExclusiveQueuedThreads, getFirstQueuedThread, getSharedQueuedThreads, hasContended, hasQueuedPredecessors, owns, releaseShared, tryAcquireSharedNanos, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 

Constructor Detail

LazyReference

public LazyReference(ReferenceBundle bundle)


 
Method Detail

clear

public void clear()


get

public Object get()


initValue

public Object initValue()


toString

public String toString()


 

Copyright © 2003-2013 The Codehaus. All rights reserved.