gov.nasa.worldwind.util
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Constructor Summary | |
|---|---|
SessionCacheRetrievalPostProcessor(SessionCache cache,
Object cacheKey,
AbsentResourceList absentResourceList,
long resourceID,
PropertyChangeListener propertyListener,
String propertyName)
Constructs a SessionCachePostProcessor with a specified cache and cache key, and an optional property listener and property name. |
|
| Method Summary | |
|---|---|
AbsentResourceList |
getAbsentResourceList()
Returns the absent resource list that is updated when the retrieval completes. |
SessionCache |
getCache()
Returns the session cache that receives the retrieved data. |
Object |
getCacheKey()
Returns the cache key which identifies where the retrieved data is placed in the session cache. |
String |
getName()
Returns this post processor's name, or null if this post processor doesn't have a name. |
PropertyChangeListener |
getPropertyListener()
Returns the property change listener which is fired when the retrieved data is available. |
String |
getPropertyName()
Returns the property name to use in the property change event fired when retrieved data is available. |
long |
getResourceID()
Returns the resource ID to use in the absent resource list. |
protected void |
onRetrievalFailed(Retriever retriever)
|
protected void |
onRetrievalSuceeded(Retriever retriever)
|
ByteBuffer |
run(Retriever retriever)
Inspect the results of a retrieval for success or failure. |
void |
setName(String name)
Sets this post processor's name to a specified String value, or null to specify that the post processor does not have a name. |
protected void |
signalRetrievalComplete()
|
String |
toString()
If the post processor has a non-null String name, this returns that name. |
protected String |
validate(Retriever retriever)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SessionCacheRetrievalPostProcessor(SessionCache cache, Object cacheKey, AbsentResourceList absentResourceList, long resourceID, PropertyChangeListener propertyListener, String propertyName)
cache - cache that receives the retrieved data.cacheKey - cache key to place the retrieved data under.absentResourceList - the absent resource list to update.resourceID - the resource ID to use in the absent resource list.propertyListener - property listener to notify when the data is available. Can be null.propertyName - property name to use for the property event when the data is available. Can be null.| Method Detail |
|---|
public final AbsentResourceList getAbsentResourceList()
public final SessionCache getCache()
public final Object getCacheKey()
public String getName()
public final PropertyChangeListener getPropertyListener()
public final String getPropertyName()
public final long getResourceID()
protected void onRetrievalFailed(Retriever retriever)
protected void onRetrievalSuceeded(Retriever retriever)
public ByteBuffer run(Retriever retriever)
run in interface RetrievalPostProcessorretriever - the Retriever which has either succeeded or failed in fetching the data.
public void setName(String name)
name - this post processor's name. May be null.protected void signalRetrievalComplete()
public String toString()
protected String validate(Retriever retriever)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||