Enum Jersey3ClientProperties
- java.lang.Object
-
- java.lang.Enum<Jersey3ClientProperties>
-
- com.oracle.bmc.http.client.jersey3.Jersey3ClientProperties
-
- All Implemented Interfaces:
Serializable,Comparable<Jersey3ClientProperties>
public enum Jersey3ClientProperties extends Enum<Jersey3ClientProperties>
Properties for the Jersey HTTP client.
-
-
Field Summary
Fields Modifier and Type Field Description static Jersey3ClientProperty<Boolean>APACHE_IDLE_CONNECTION_MONITOR_THREAD_ENABLEDIdle monitor thread polls the connection manager to monitor for expired and idle connections and closes any such connectionsstatic Jersey3ClientProperty<Integer>APACHE_IDLE_CONNECTION_MONITOR_THREAD_IDLE_TIMEOUT_SECONDSThe idle timeout - close connections that have been idle longer than idleConnectionMonitorThreadIdleTimeoutInSeconds seconds by idleMonitorThread.static Jersey3ClientProperty<Integer>APACHE_IDLE_CONNECTION_MONITOR_THREAD_WAIT_TIME_SECONDSThe time interval after which the check and closing of expired/idle connections is performed by the idleMonitorThread.static Jersey3ClientProperty<org.glassfish.jersey.spi.ExecutorServiceProvider>EXECUTOR_SERVICE_PROVIDERstatic Jersey3ClientProperty<Boolean>USE_APACHE_CONNECTORstatic Jersey3ClientProperty<Boolean>USE_JERSEY_DEFAULT_EXECUTOR_SERVICE_PROVIDERJersey provides a defaultExecutorServiceProvider, but in stand-alone applications, its threads fail to terminate, because they are not daemon threads.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Jersey3ClientPropertiesvalueOf(String name)Returns the enum constant of this type with the specified name.static Jersey3ClientProperties[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Field Detail
-
USE_APACHE_CONNECTOR
public static final Jersey3ClientProperty<Boolean> USE_APACHE_CONNECTOR
-
USE_JERSEY_DEFAULT_EXECUTOR_SERVICE_PROVIDER
public static final Jersey3ClientProperty<Boolean> USE_JERSEY_DEFAULT_EXECUTOR_SERVICE_PROVIDER
Jersey provides a defaultExecutorServiceProvider, 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
ExecutorServiceProviderinstead 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
ExecutorServiceProvideris 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 connectionsIf 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 nameNullPointerException- if the argument is null
-
-