NASA World Wind

gov.nasa.worldwind.retrieve
Interface RetrievalService

All Superinterfaces:
AVList, EventListener, MessageListener, PropertyChangeListener, WWObject
All Known Implementing Classes:
BasicRetrievalService

public interface RetrievalService
extends WWObject


Nested Class Summary
static interface RetrievalService.SSLExceptionListener
           
 
Method Summary
 boolean contains(Retriever retriever)
           
 int getNumRetrieversPending()
           
 int getRetrieverPoolSize()
           
 RetrievalService.SSLExceptionListener getSSLExceptionListener()
          Indicates the listener to be called when SSLHandshakeExceptions are thrown during resource retrieval.
 boolean hasActiveTasks()
           
 boolean isAvailable()
           
 RetrievalFuture runRetriever(Retriever retriever)
           
 RetrievalFuture runRetriever(Retriever retriever, double priority)
           
 void setRetrieverPoolSize(int poolSize)
           
 void setSSLExceptionListener(RetrievalService.SSLExceptionListener listener)
          Specifies the listener called when a SSLHandshakeException is thrown during resource retrieval.
 void shutdown(boolean immediately)
           
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 
Methods inherited from interface gov.nasa.worldwind.event.MessageListener
onMessage
 

Method Detail

contains

boolean contains(Retriever retriever)

getNumRetrieversPending

int getNumRetrieversPending()

getRetrieverPoolSize

int getRetrieverPoolSize()

getSSLExceptionListener

RetrievalService.SSLExceptionListener getSSLExceptionListener()
Indicates the listener to be called when SSLHandshakeExceptions are thrown during resource retrieval.

Returns:
the exception listener, or null if no listener has been specified.

hasActiveTasks

boolean hasActiveTasks()

isAvailable

boolean isAvailable()

runRetriever

RetrievalFuture runRetriever(Retriever retriever)

runRetriever

RetrievalFuture runRetriever(Retriever retriever,
                             double priority)

setRetrieverPoolSize

void setRetrieverPoolSize(int poolSize)

setSSLExceptionListener

void setSSLExceptionListener(RetrievalService.SSLExceptionListener listener)
Specifies the listener called when a SSLHandshakeException is thrown during resource retrieval.

Parameters:
listener - to listener to invoke, or null if no listener is to be invoked.

shutdown

void shutdown(boolean immediately)

NASA World Wind