public interface TileLoader
Modifier and Type | Method and Description |
---|---|
void |
cancelOutstandingTasks()
cancels all outstanding tasks in the queue.
|
TileJob |
createTileLoaderJob(Tile tile)
A typical implementation of this function should create and return a
new
TileJob instance that performs the load action. |
default boolean |
hasOutstandingTasks()
Determines whether this
TileLoader has tasks which have not completed. |
TileJob createTileLoaderJob(Tile tile)
TileJob
instance that performs the load action.tile
- the tile to be loadedTileJob
implementation that performs the desired load
action.void cancelOutstandingTasks()
default boolean hasOutstandingTasks()
TileLoader
has tasks which have not completed.TileLoader
has tasks which have not completed. This answer may well be
"approximate" given that many implementations will be using mechanisms where a queue's state can change
during the computation.