Class JdkConnectorProperties


  • public final class JdkConnectorProperties
    extends java.lang.Object
    Configuration options specific to JdkConnector.
    • Field Detail

      • WORKER_THREAD_POOL_CONFIG

        public static final java.lang.String WORKER_THREAD_POOL_CONFIG
        Configuration of the connector thread pool.

        An instance of ThreadPoolConfig is expected.

        See Also:
        Constant Field Values
      • CONTAINER_IDLE_TIMEOUT

        public static final java.lang.String CONTAINER_IDLE_TIMEOUT
        Container idle timeout in milliseconds (Integer value).

        When the timeout elapses, the shared thread pool will be destroyed.

        The default value is 30000

        See Also:
        Constant Field Values
      • MAX_HEADER_SIZE

        public static final java.lang.String MAX_HEADER_SIZE
        A configurable property of HTTP parser. It defines the maximal acceptable size of HTTP response initial line, each header and chunk header.

        The default value is 8192

        See Also:
        Constant Field Values
      • COOKIE_POLICY

        public static final java.lang.String COOKIE_POLICY
        To set the cookie policy of this cookie manager.

        The default value is ACCEPT_ORIGINAL_SERVER.

        See Also:
        CookieManager, Constant Field Values
      • MAX_CONNECTIONS_PER_DESTINATION

        public static final java.lang.String MAX_CONNECTIONS_PER_DESTINATION
        A maximal number of open connection to each destination. A destination is determined by the following triple:
        • host
        • port
        • protocol (HTTP/HTTPS)
          • The default value is 20

        See Also:
        Constant Field Values
      • CONNECTION_IDLE_TIMEOUT

        public static final java.lang.String CONNECTION_IDLE_TIMEOUT
        An amount of time in milliseconds (Integer value) during which an idle connection will be kept open.

        The default value is 1000000

        See Also:
        Constant Field Values
      • DEFAULT_COOKIE_POLICY

        public static final java.net.CookiePolicy DEFAULT_COOKIE_POLICY
        Default value for the COOKIE_POLICY property.
    • Constructor Detail

      • JdkConnectorProperties

        private JdkConnectorProperties()
        Prevents instantiation.
    • Method Detail

      • getValue

        public static <T> T getValue​(java.util.Map<java.lang.String,​?> properties,
                                     java.lang.String key,
                                     java.lang.Class<T> type)
      • getValue

        public static <T> T getValue​(java.util.Map<java.lang.String,​?> properties,
                                     java.lang.String key,
                                     T defaultValue,
                                     java.lang.Class<T> type)