Last change
on this file since 9228 was 8624, checked in by bastiK, 9 years ago |
add missing svn:eol-style=native
|
-
Property svn:eol-style
set to
native
|
File size:
782 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.cache;
|
---|
3 |
|
---|
4 | public interface ICachedLoaderListener {
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * Result of download
|
---|
8 | */
|
---|
9 | enum LoadResult {
|
---|
10 | SUCCESS,
|
---|
11 | FAILURE,
|
---|
12 | CANCELED
|
---|
13 | }
|
---|
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 cache entry contents
|
---|
22 | * @param attributes cache entry attributes
|
---|
23 | * @param result load result (success, failure, canceled)
|
---|
24 | */
|
---|
25 | void loadingFinished(CacheEntry data, CacheEntryAttributes attributes, LoadResult result);
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.