Package gov.nasa.worldwind.retrieve
Interface RetrievalService
-
- All Superinterfaces:
AVList
,java.util.EventListener
,MessageListener
,java.beans.PropertyChangeListener
,WWObject
- All Known Implementing Classes:
BasicRetrievalService
public interface RetrievalService extends WWObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
RetrievalService.SSLExceptionListener
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
contains(Retriever retriever)
int
getNumRetrieversPending()
int
getRetrieverPoolSize()
RetrievalService.SSLExceptionListener
getSSLExceptionListener()
Indicates the listener to be called whenSSLHandshakeException
s 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 aSSLHandshakeException
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 gov.nasa.worldwind.event.MessageListener
onMessage
-
-
-
-
Method Detail
-
runRetriever
RetrievalFuture runRetriever(Retriever retriever)
-
runRetriever
RetrievalFuture runRetriever(Retriever retriever, double priority)
-
setRetrieverPoolSize
void setRetrieverPoolSize(int poolSize)
-
getRetrieverPoolSize
int getRetrieverPoolSize()
-
hasActiveTasks
boolean hasActiveTasks()
-
isAvailable
boolean isAvailable()
-
contains
boolean contains(Retriever retriever)
-
getNumRetrieversPending
int getNumRetrieversPending()
-
shutdown
void shutdown(boolean immediately)
-
setSSLExceptionListener
void setSSLExceptionListener(RetrievalService.SSLExceptionListener listener)
Specifies the listener called when aSSLHandshakeException
is thrown during resource retrieval.- Parameters:
listener
- to listener to invoke, or null if no listener is to be invoked.
-
getSSLExceptionListener
RetrievalService.SSLExceptionListener getSSLExceptionListener()
Indicates the listener to be called whenSSLHandshakeException
s are thrown during resource retrieval.- Returns:
- the exception listener, or null if no listener has been specified.
-
-