public enum JerseyClientProperties extends Enum<JerseyClientProperties>
Properties for the Jersey HTTP client.
| Modifier and Type | Field and Description |
|---|---|
static JerseyClientProperty<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
|
static JerseyClientProperty<Integer> |
APACHE_IDLE_CONNECTION_MONITOR_THREAD_IDLE_TIMEOUT_SECONDS
The idle timeout - close connections that have been idle longer than
idleConnectionMonitorThreadIdleTimeoutInSeconds seconds by idleMonitorThread.
|
static JerseyClientProperty<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.
|
static JerseyClientProperty<org.glassfish.jersey.spi.ExecutorServiceProvider> |
EXECUTOR_SERVICE_PROVIDER |
static JerseyClientProperty<Boolean> |
USE_APACHE_CONNECTOR |
static JerseyClientProperty<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. |
| Modifier and Type | Method and Description |
|---|---|
static JerseyClientProperties |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JerseyClientProperties[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JerseyClientProperty<Boolean> USE_APACHE_CONNECTOR
public static final JerseyClientProperty<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.
public static final JerseyClientProperty<org.glassfish.jersey.spi.ExecutorServiceProvider> EXECUTOR_SERVICE_PROVIDER
public static final JerseyClientProperty<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
public static final JerseyClientProperty<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
public static final JerseyClientProperty<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
public static JerseyClientProperties[] values()
for (JerseyClientProperties c : JerseyClientProperties.values()) System.out.println(c);
public static JerseyClientProperties valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016–2024. All rights reserved.