- Timestamp:
- 2016-08-03T19:07:05+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/BufferedImageCacheEntry.java
r10247 r10723 11 11 * Cache Entry that has methods to get the BufferedImage, that will be cached along in memory 12 12 * but will be not serialized when saved to the disk (to avoid duplication of data) 13 * 13 14 * @author Wiktor Niesiobędzki 14 *15 15 */ 16 16 public class BufferedImageCacheEntry extends CacheEntry { -
trunk/src/org/openstreetmap/josm/data/cache/CacheEntry.java
r8629 r10723 6 6 7 7 /** 8 * @author Wiktor Niesiobędzki9 *10 8 * Class that will hold JCS cache entries 11 9 * 10 * @author Wiktor Niesiobędzki 12 11 */ 13 12 public class CacheEntry implements Serializable { -
trunk/src/org/openstreetmap/josm/data/cache/HostLimitQueue.java
r10608 r10723 14 14 15 15 /** 16 * @author Wiktor Niesiobędzki17 *18 16 * Queue for ThreadPoolExecutor that implements per-host limit. It will acquire a semaphore for each task 19 17 * and it will set a runnable task with semaphore release, when job has finished. 20 * 18 * <p> 21 19 * This implementation doesn't guarantee to have at most hostLimit connections per host[1], and it doesn't 22 * guarantee that all threads will be busy, when there is work for them[2]. 23 * 20 * guarantee that all threads will be busy, when there is work for them[2]. <br> 24 21 * [1] More connection per host may happen, when ThreadPoolExecutor is growing its pool, and thus 25 * tasks do not go through the Queue 22 * tasks do not go through the Queue <br> 26 23 * [2] If we have a queue, and for all hosts in queue we will fail to acquire semaphore, the thread 27 24 * take the first available job and wait for semaphore. It might be the case, that semaphore was released 28 25 * for some task further in queue, but this implementation doesn't try to detect such situation 29 26 * 30 * 27 * @author Wiktor Niesiobędzki 31 28 */ 32 29 public class HostLimitQueue extends LinkedBlockingDeque<Runnable> { -
trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java
r10652 r10723 33 33 34 34 /** 35 * @author Wiktor Niesiobędzki36 *37 35 * Wrapper class for JCS Cache. Sets some sane environment and returns instances of cache objects. 38 36 * Static configuration for now assumes some small LRU cache in memory and larger LRU cache on disk 37 * 38 * @author Wiktor Niesiobędzki 39 39 * @since 8168 40 40 */ -
trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
r10626 r10723 30 30 31 31 /** 32 * @author Wiktor Niesiobędzki33 *34 * @param <K> cache entry key type35 * @param <V> cache value type36 *37 32 * Generic loader for HTTP based tiles. Uses custom attribute, to check, if entry has expired 38 33 * according to HTTP headers sent with tile. If so, it tries to verify using Etags … … 45 40 * listeners will be gathered and notified, once download job will be finished 46 41 * 42 * @param <K> cache entry key type 43 * @param <V> cache value type 44 * @author Wiktor Niesiobędzki 47 45 * @since 8168 48 46 */ -
trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoader.java
r9004 r10723 20 20 21 21 /** 22 * @author Wiktor Niesiobędzki23 *24 22 * Wrapper class that bridges between JCS cache and Tile Loaders 25 23 * 24 * @author Wiktor Niesiobędzki 26 25 */ 27 26 public class TMSCachedTileLoader implements TileLoader, CachedTileLoader { -
trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java
r10627 r10723 35 35 36 36 /** 37 * Class bridging TMS requests to JCS cache requests 38 * 37 39 * @author Wiktor Niesiobędzki 38 *39 * Class bridging TMS requests to JCS cache requests40 40 * @since 8168 41 41 */
Note:
See TracChangeset
for help on using the changeset viewer.