public abstract class MapTileModuleProviderBase extends Object implements OpenStreetMapTileProviderConstants
Modifier and Type | Class and Description |
---|---|
class |
MapTileModuleProviderBase.CantContinueException
Thrown by a tile provider module in TileLoader.loadTile() to signal that it can no longer
function properly.
|
protected class |
MapTileModuleProviderBase.TileLoader
Load the requested tile.
|
Modifier and Type | Field and Description |
---|---|
protected LinkedHashMap<MapTile,MapTileRequestState> |
mPending |
protected Object |
mQueueLockObject |
protected HashMap<MapTile,MapTileRequestState> |
mWorking |
CACHE_MAPTILECOUNT_DEFAULT, DEBUG_TILE_PROVIDERS, DEBUGMODE, DEFAULT_MAXIMUM_CACHED_FILE_AGE, MINIMUM_ZOOMLEVEL, NUMBER_OF_TILE_DOWNLOAD_THREADS, NUMBER_OF_TILE_FILESYSTEM_THREADS, ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, ONE_YEAR, OSMDROID_PATH, TILE_DOWNLOAD_MAXIMUM_QUEUE_SIZE, TILE_EXPIRY_TIME_MILLISECONDS, TILE_FILESYSTEM_MAXIMUM_QUEUE_SIZE, TILE_MAX_CACHE_SIZE_BYTES, TILE_PATH_BASE, TILE_PATH_EXTENSION, TILE_TRIM_CACHE_SIZE_BYTES
Constructor and Description |
---|
MapTileModuleProviderBase(int pThreadPoolSize,
int pPendingQueueSize) |
Modifier and Type | Method and Description |
---|---|
void |
detach()
Detach, we're shutting down - Stops all workers.
|
abstract int |
getMaximumZoomLevel()
Gets the maximum zoom level this tile provider can provide
|
abstract int |
getMinimumZoomLevel()
Gets the minimum zoom level this tile provider can provide
|
protected abstract String |
getName()
Gets the human-friendly name assigned to this tile provider.
|
protected abstract String |
getThreadGroupName()
Gets the name assigned to the thread for this provider.
|
protected abstract Runnable |
getTileLoader()
It is expected that the implementation will construct an internal member which internally
implements a
MapTileModuleProviderBase.TileLoader . |
abstract boolean |
getUsesDataConnection()
Returns true if implementation uses a data connection, false otherwise.
|
void |
loadMapTileAsync(MapTileRequestState pState) |
abstract void |
setTileSource(ITileSource tileSource)
Sets the tile source for this tile provider.
|
protected final Object mQueueLockObject
protected final HashMap<MapTile,MapTileRequestState> mWorking
protected final LinkedHashMap<MapTile,MapTileRequestState> mPending
public MapTileModuleProviderBase(int pThreadPoolSize, int pPendingQueueSize)
protected abstract String getName()
protected abstract String getThreadGroupName()
protected abstract Runnable getTileLoader()
MapTileModuleProviderBase.TileLoader
. This method is expected to return a that internal member to
methods of the parent methods.public abstract boolean getUsesDataConnection()
public abstract int getMinimumZoomLevel()
public abstract int getMaximumZoomLevel()
public abstract void setTileSource(ITileSource tileSource)
tileSource
- the tile sourcepublic void loadMapTileAsync(MapTileRequestState pState)
public void detach()
Copyright © 2015. All Rights Reserved.