public final class SmartClientFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DISABLE_APACHE_RETRY |
| Modifier and Type | Method and Description |
|---|---|
static com.sun.jersey.api.client.Client |
createSmartClient(SmartConfig smartConfig) |
static com.sun.jersey.api.client.Client |
createSmartClient(SmartConfig smartConfig,
com.sun.jersey.api.client.ClientHandler clientHandler) |
static com.sun.jersey.api.client.Client |
createStandardClient(SmartConfig smartConfig)
This creates a standard apache-based Jersey client, configured with a SmartConfig, but without any load balancing
or node polling.
|
static com.sun.jersey.api.client.Client |
createStandardClient(SmartConfig smartConfig,
com.sun.jersey.api.client.ClientHandler clientHandler)
This creates a standard apache-based Jersey client, configured with a SmartConfig, but without any load balancing
or node polling.
|
static void |
destroy(com.sun.jersey.api.client.Client client)
Destroy this client.
|
public static final java.lang.String DISABLE_APACHE_RETRY
public static com.sun.jersey.api.client.Client createSmartClient(SmartConfig smartConfig)
public static com.sun.jersey.api.client.Client createSmartClient(SmartConfig smartConfig, com.sun.jersey.api.client.ClientHandler clientHandler)
public static com.sun.jersey.api.client.Client createStandardClient(SmartConfig smartConfig)
public static com.sun.jersey.api.client.Client createStandardClient(SmartConfig smartConfig, com.sun.jersey.api.client.ClientHandler clientHandler)
public static void destroy(com.sun.jersey.api.client.Client client)
This method must be called when there are not responses pending otherwise undefined behavior will occur.
The client must not be reused after this method is called otherwise undefined behavior will occur.