org.autoplot.datasource.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 on old javadoc] [view source]


finished

finished( QDataSet ds ) → void

hand the dataset resulting from the completed load off to the reference cache. Threads that are parked will continue. If the dataset is mutable, then a copy is made.

Parameters

ds - null or the dataset resolved from the URI.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


park

park( ProgressMonitor mon ) → QDataSet

park this thread until the other guy has finished loading.

Parameters

mon - monitor that will monitor the load status.

Returns:

the dataset

[search for examples] [view on GitHub] [view on old javadoc] [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 on old javadoc] [view source]


toString

toString( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [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 on old javadoc] [view source]