Class AsyncHTTPConduitFactory
- java.lang.Object
-
- org.apache.cxf.transport.http.asyncclient.hc5.AsyncHTTPConduitFactory
-
- All Implemented Interfaces:
HTTPConduitFactory
public class AsyncHTTPConduitFactory extends Object implements HTTPConduitFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAsyncHTTPConduitFactory.CloseIdleConnectionThreadstatic classAsyncHTTPConduitFactory.UseAsyncPolicy
-
Field Summary
Fields Modifier and Type Field Description static StringCONNECTION_MAX_IDLEstatic StringCONNECTION_TTLstatic StringMAX_CONNECTIONSstatic StringMAX_PER_HOST_CONNECTIONSstatic StringSELECT_INTERVALstatic StringSO_KEEPALIVEstatic StringSO_LINGERstatic StringSO_TIMEOUTstatic StringTCP_NODELAYstatic StringTHREAD_COUNTstatic StringUSE_POLICY
-
Constructor Summary
Constructors Constructor Description AsyncHTTPConduitFactory(Map<String,Object> conf)AsyncHTTPConduitFactory(Bus b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadaptClientBuilder(org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder httpAsyncClientBuilder)voidclose(HTTPClientPolicy clientPolicy)org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClientcreateClient(AsyncHTTPConduit c, org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy)HTTPConduitcreateConduit(Bus bus, EndpointInfo localInfo, org.apache.cxf.ws.addressing.EndpointReferenceType target)HTTPConduitcreateConduit(HTTPTransportFactory f, Bus bus, EndpointInfo localInfo, org.apache.cxf.ws.addressing.EndpointReferenceType target)AsyncHTTPConduitFactory.UseAsyncPolicygetUseAsyncPolicy()booleanisShutdown()voidsetupNIOClient(HTTPClientPolicy clientPolicy, org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy)voidshutdown()voidupdate(Map<String,Object> props)
-
-
-
Field Detail
-
TCP_NODELAY
public static final String TCP_NODELAY
- See Also:
- Constant Field Values
-
SO_KEEPALIVE
public static final String SO_KEEPALIVE
- See Also:
- Constant Field Values
-
SO_LINGER
public static final String SO_LINGER
- See Also:
- Constant Field Values
-
SO_TIMEOUT
public static final String SO_TIMEOUT
- See Also:
- Constant Field Values
-
MAX_CONNECTIONS
public static final String MAX_CONNECTIONS
- See Also:
- Constant Field Values
-
MAX_PER_HOST_CONNECTIONS
public static final String MAX_PER_HOST_CONNECTIONS
- See Also:
- Constant Field Values
-
CONNECTION_TTL
public static final String CONNECTION_TTL
- See Also:
- Constant Field Values
-
CONNECTION_MAX_IDLE
public static final String CONNECTION_MAX_IDLE
- See Also:
- Constant Field Values
-
THREAD_COUNT
public static final String THREAD_COUNT
- See Also:
- Constant Field Values
-
SELECT_INTERVAL
public static final String SELECT_INTERVAL
- See Also:
- Constant Field Values
-
USE_POLICY
public static final String USE_POLICY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUseAsyncPolicy
public AsyncHTTPConduitFactory.UseAsyncPolicy getUseAsyncPolicy()
-
isShutdown
public boolean isShutdown()
-
createConduit
public HTTPConduit createConduit(HTTPTransportFactory f, Bus bus, EndpointInfo localInfo, org.apache.cxf.ws.addressing.EndpointReferenceType target) throws IOException
- Specified by:
createConduitin interfaceHTTPConduitFactory- Throws:
IOException
-
createConduit
public HTTPConduit createConduit(Bus bus, EndpointInfo localInfo, org.apache.cxf.ws.addressing.EndpointReferenceType target) throws IOException
- Throws:
IOException
-
shutdown
public void shutdown()
-
setupNIOClient
public void setupNIOClient(HTTPClientPolicy clientPolicy, org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy)
-
adaptClientBuilder
protected void adaptClientBuilder(org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder httpAsyncClientBuilder)
-
createClient
public org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient createClient(AsyncHTTPConduit c, org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy) throws IOException
- Throws:
IOException
-
close
public void close(HTTPClientPolicy clientPolicy)
-
-