Class AsyncHTTPConduitFactory
- java.lang.Object
-
- org.apache.cxf.transport.http.asyncclient.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 StringINTEREST_OP_QUEUEDstatic 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.http.impl.nio.client.HttpAsyncClientBuilder httpAsyncClientBuilder)org.apache.http.impl.nio.client.CloseableHttpAsyncClientcreateClient(AsyncHTTPConduit c)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)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
-
INTEREST_OP_QUEUED
public static final String INTEREST_OP_QUEUED
- 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) throws org.apache.http.nio.reactor.IOReactorException
- Throws:
org.apache.http.nio.reactor.IOReactorException
-
adaptClientBuilder
protected void adaptClientBuilder(org.apache.http.impl.nio.client.HttpAsyncClientBuilder httpAsyncClientBuilder)
-
createClient
public org.apache.http.impl.nio.client.CloseableHttpAsyncClient createClient(AsyncHTTPConduit c) throws IOException
- Throws:
IOException
-
-