public static class ReferenceCache.ReferenceCacheEntry
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
exception(java.lang.Exception ex)
Notify the reference cache that the load resulted in an exception.
|
void |
finished(QDataSet ds)
hand the dataset resulting from the completed load off to the reference cache.
|
QDataSet |
park(ProgressMonitor mon)
park this thread until the other guy has finished loading.
|
boolean |
shouldILoad(java.lang.Thread t)
query this to see if the current thread should load the resource, or just park while
the loading thread loads the resource.
|
java.lang.String |
toString() |
boolean |
wasGarbageCollected()
returns true if the entry was loaded, but now has been garbage collected.
|
public boolean shouldILoad(java.lang.Thread t)
t
- the current thread (Thread.currentThread())public QDataSet park(ProgressMonitor mon) throws java.lang.Exception
mon
- monitor that will monitor the load status.java.lang.Exception
- when the data cannot be read.public void finished(QDataSet ds)
ds
- the dataset resolved from the URI.public void exception(java.lang.Exception ex)
ex
- the exception that occurred during the load.public boolean wasGarbageCollected()
public java.lang.String toString()
toString
in class java.lang.Object