Enum Jersey3ClientProperties

    • Field Detail

      • USE_JERSEY_DEFAULT_EXECUTOR_SERVICE_PROVIDER

        public static final Jersey3ClientProperty<Boolean> USE_JERSEY_DEFAULT_EXECUTOR_SERVICE_PROVIDER
        Jersey provides a default ExecutorServiceProvider, but in stand-alone applications, its threads fail to terminate, because they are not daemon threads.

        By default, the OCI Java SDK uses its own ExecutorServiceProvider instead of Jersey's default. Setting this property to true changes the OCI Java SDK behavior to use Jersey's default and not its own.

        Note, this property is pointless if a specific ExecutorServiceProvider is specified using EXECUTOR_SERVICE_PROVIDER.

      • EXECUTOR_SERVICE_PROVIDER

        public static final Jersey3ClientProperty<org.glassfish.jersey.spi.ExecutorServiceProvider> EXECUTOR_SERVICE_PROVIDER
      • APACHE_IDLE_CONNECTION_MONITOR_THREAD_ENABLED

        public static final Jersey3ClientProperty<Boolean> APACHE_IDLE_CONNECTION_MONITOR_THREAD_ENABLED
        Idle monitor thread polls the connection manager to monitor for expired and idle connections and closes any such connections

        If the property is absent then default value of true will be used

      • APACHE_IDLE_CONNECTION_MONITOR_THREAD_WAIT_TIME_SECONDS

        public static final Jersey3ClientProperty<Integer> APACHE_IDLE_CONNECTION_MONITOR_THREAD_WAIT_TIME_SECONDS
        The time interval after which the check and closing of expired/idle connections is performed by the idleMonitorThread.

        This is applicable only if idleConnectionMonitorThead is enabled/true

        If the property is absent then default value of 5 seconds will be used

      • APACHE_IDLE_CONNECTION_MONITOR_THREAD_IDLE_TIMEOUT_SECONDS

        public static final Jersey3ClientProperty<Integer> APACHE_IDLE_CONNECTION_MONITOR_THREAD_IDLE_TIMEOUT_SECONDS
        The idle timeout - close connections that have been idle longer than idleConnectionMonitorThreadIdleTimeoutInSeconds seconds by idleMonitorThread.

        This is applicable only if idleConnectionMonitorThead is enabled/true

        If the property is absent then default value of 20 seconds will be used

    • Method Detail

      • values

        public static Jersey3ClientProperties[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Jersey3ClientProperties c : Jersey3ClientProperties.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Jersey3ClientProperties valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null