public static class RestClient.PooledRequestFactory
RequestFactory with explicit pooling parameters and options specific to the Jetty HttpClient
Constructor and description |
---|
PooledRequestFactory
(java.lang.String shortName) The required shortName is used as a prefix for thread names and should be distinct. |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
destroy() |
|
protected void |
finalize() |
|
public org.eclipse.jetty.client.HttpClient |
getHttpClient() |
|
public PooledRequestFactory |
init() |
|
public Request |
makeRequest(java.lang.String uriString) |
|
public PooledRequestFactory |
poolSize(int size) Size of the HTTP connection pool per destination (scheme + host + port) |
|
public PooledRequestFactory |
queueSize(int size) Size of the HTTP request queue per destination (scheme + host + port) |
|
public PooledRequestFactory |
validationTimeout(long millis) Quarantine timeout for connection validation, see ValidatingConnectionPool javadoc for details |
|
public PooledRequestFactory |
with(org.eclipse.jetty.util.ssl.SslContextFactory$Client sslcf) Note that if a transport is specified it must include the SslContextFactory.Client so this is ignored. |
|
public PooledRequestFactory |
with(org.eclipse.jetty.client.HttpClientTransport transport) |
|
public PooledRequestFactory |
with(org.eclipse.jetty.util.thread.QueuedThreadPool executor) |
|
public PooledRequestFactory |
with(org.eclipse.jetty.util.thread.Scheduler scheduler) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The required shortName is used as a prefix for thread names and should be distinct.
Size of the HTTP connection pool per destination (scheme + host + port)
Size of the HTTP request queue per destination (scheme + host + port)
Quarantine timeout for connection validation, see ValidatingConnectionPool javadoc for details
Note that if a transport is specified it must include the SslContextFactory.Client so this is ignored.