Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 milliseconds
        readTimeout - in milliseconds
        headers - http headers
        minimumExpiryTime - 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