org.das2.qds.ReferenceCache.ReferenceCacheEntry

Keep track of the status of a load. This keeps track of the thread that is actually loading the data and it's


exception

exception( java.lang.Exception ex ) → void

Notify the reference cache that the load resulted in an exception. Threads that are parked will continue

Parameters

ex - the exception that occurred during the load.

Returns:

void (returns nothing)

search for examples view on GitHub view source


shouldILoad

shouldILoad( java.lang.Thread t ) → boolean

query this to see if the current thread should load the resource, or just park while the loading thread loads the resource.

Parameters

t - the current thread (Thread.currentThread())

Returns:

true if the data should be loaded.

search for examples view on GitHub view source


wasGarbageCollected

wasGarbageCollected( ) → boolean

returns true if the entry was loaded, but now has been garbage collected.

Returns:

true if the reference was garbage collected and is no longer available.

search for examples view on GitHub view source