Changeset 9709 in josm
- Timestamp:
- 2016-02-01T21:31:02+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
r9232 r9709 69 69 */ 70 70 71 private static ThreadPoolExecutor DEFAULT_DOWNLOAD_JOB_DISPATCHER = new ThreadPoolExecutor(71 private static final ThreadPoolExecutor DEFAULT_DOWNLOAD_JOB_DISPATCHER = new ThreadPoolExecutor( 72 72 2, // we have a small queue, so threads will be quickly started (threads are started only, when queue is full) 73 THREAD_LIMIT.get() .intValue(), // do not this number of threads73 THREAD_LIMIT.get(), // do not this number of threads 74 74 30, // keepalive for thread 75 75 TimeUnit.SECONDS, … … 81 81 82 82 83 private static ConcurrentMap<String, Set<ICachedLoaderListener>> inProgress = new ConcurrentHashMap<>();84 private static ConcurrentMap<String, Boolean> useHead = new ConcurrentHashMap<>();85 86 protected long now; // when the job started87 88 private ICacheAccess<K, V> cache;83 private static final ConcurrentMap<String, Set<ICachedLoaderListener>> inProgress = new ConcurrentHashMap<>(); 84 private static final ConcurrentMap<String, Boolean> useHead = new ConcurrentHashMap<>(); 85 86 protected final long now; // when the job started 87 88 private final ICacheAccess<K, V> cache; 89 89 private ICacheElement<K, V> cacheElement; 90 90 protected V cacheData; … … 92 92 93 93 // HTTP connection parameters 94 private int connectTimeout;95 private int readTimeout;96 private Map<String, String> headers;97 private ThreadPoolExecutor downloadJobExecutor;94 private final int connectTimeout; 95 private final int readTimeout; 96 private final Map<String, String> headers; 97 private final ThreadPoolExecutor downloadJobExecutor; 98 98 private Runnable finishTask; 99 99 private boolean force;
Note:
See TracChangeset
for help on using the changeset viewer.