public class PriorityImageManagerHttpDisk<T> extends ImageManagerSourceRam<T ,BufferedImage >
desiredCacheSize, memoryCache| Constructor and Description |
|---|
PriorityImageManagerHttpDisk(int nThreads, int cacheSize, X resolver)
Create an ImageSource based ImageManager implementation that does in-RAM caching.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getNetworkState()
|
void |
setNetworkState(boolean state)
Set whether an internet connection shall be used to retrieve tiles.
|
void |
setUserAgent(String
Set the user-agent to use during HTTP-requests.
|
cancelJobs, clearCache, destroy, get, get, getImageSource, setCacheHintMinimumSize, setIgnorePendingProductions, stopRunning, unchache, willNeedaddLoadListener, notifyListeners, notifyListenersFail, removeLoadListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLoadListener, removeLoadListenerpublic PriorityImageManagerHttpDisk(int nThreads,
int cacheSize,
X resolver)
nThreads - the number of threads to use for providing images.
cacheSize - the number of data elements to store in the RAM cache.
source - the ImageSource to use for creation of unknown requests.
public void setNetworkState(boolean state)
state - the network state.
public boolean getNetworkState()
public void setUserAgent(StringuserAgent)
userAgent - the user agent to use.