Class TileJobOptions
- java.lang.Object
-
- org.openstreetmap.josm.data.imagery.TileJobOptions
-
public class TileJobOptions extends java.lang.Object
Class containing all options that are passed from Layer to TileJob- Since:
- 13733
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
connectTimeout
(package private) java.util.Map<java.lang.String,java.lang.String>
headers
(package private) long
minimumExpiryTime
(package private) int
readTimeout
-
Constructor Summary
Constructors Constructor Description TileJobOptions(int connectTimeout, int readTimeout, java.util.Map<java.lang.String,java.lang.String> headers, long minimumExpiryTime)
Options constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getConnectionTimeout()
Returns socket connection timeout in milliseconds.java.util.Map<java.lang.String,java.lang.String>
getHeaders()
Returns unmodifiable map with headers to be sent to tile server.long
getMinimumExpiryTime()
Returns minimum cache expire time in seconds for downloaded tiles.int
getReadTimeout()
Returns socket read timeout in milliseconds.
-
-
-
Field Detail
-
connectTimeout
final int connectTimeout
-
readTimeout
final int readTimeout
-
headers
final java.util.Map<java.lang.String,java.lang.String> headers
-
minimumExpiryTime
final long minimumExpiryTime
-
-
Constructor Detail
-
TileJobOptions
public TileJobOptions(int connectTimeout, int readTimeout, java.util.Map<java.lang.String,java.lang.String> headers, long minimumExpiryTime)
Options constructor- Parameters:
connectTimeout
- in millisecondsreadTimeout
- in millisecondsheaders
- http headersminimumExpiryTime
- in seconds
-
-
Method Detail
-
getConnectionTimeout
public int getConnectionTimeout()
Returns socket connection timeout in milliseconds.- Returns:
- socket connection timeout in milliseconds
-
getReadTimeout
public int getReadTimeout()
Returns socket read timeout in milliseconds.- Returns:
- socket read timeout in milliseconds
-
getHeaders
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
Returns unmodifiable map with headers to be sent to tile server.- Returns:
- unmodifiable map with headers to be sent to tile server
-
getMinimumExpiryTime
public long getMinimumExpiryTime()
Returns minimum cache expire time in seconds for downloaded tiles.- Returns:
- minimum cache expire time in seconds for downloaded tiles
-
-