source: josm/trunk/src/org/openstreetmap/josm/data/cache/ICachedLoaderListener.java@ 8176

Last change on this file since 8176 was 8176, checked in by stoecker, 9 years ago

fix #11317 - tile flickering during TMS loading - patch by wiktorn

File size: 653 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.cache;
3
4public interface ICachedLoaderListener {
5
6 /**
7 * Result of download
8 *
9 */
10 enum LoadResult {
11 SUCCESS,
12 FAILURE,
13 REJECTED
14 }
15 /**
16 * Will be called when K object processed. The result might be:
17 * LoadResult.SUCCESS when object was fetched
18 * LoadResult.FAILURE when there was a failure during download
19 * LoadResult.REJECTED when job was rejected because of full queue
20 *
21 * @param data
22 * @param result
23 */
24 public void loadingFinished(CacheEntry data, LoadResult result);
25
26}
Note: See TracBrowser for help on using the repository browser.