org.apache.cxf.transport.http.asyncclient
Class AsyncHTTPConduitFactory

java.lang.Object
  extended by org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduitFactory
All Implemented Interfaces:
org.apache.cxf.buslifecycle.BusLifeCycleListener, org.apache.cxf.transport.http.HTTPConduitFactory

public class AsyncHTTPConduitFactory
extends Object
implements org.apache.cxf.buslifecycle.BusLifeCycleListener, org.apache.cxf.transport.http.HTTPConduitFactory


Nested Class Summary
static class AsyncHTTPConduitFactory.UseAsyncPolicy
           
 
Field Summary
static String CONNECTION_TTL
           
static String INTEREST_OP_QUEUED
           
static String MAX_CONNECTIONS
           
static String MAX_PER_HOST_CONNECTIONS
           
static String SELECT_INTERVAL
           
static String SO_KEEPALIVE
           
static String SO_LINGER
           
static String SO_TIMEOUT
           
static String TCP_NODELAY
           
static String THREAD_COUNT
           
static String USE_POLICY
           
 
Constructor Summary
AsyncHTTPConduitFactory(org.apache.cxf.Bus b)
           
AsyncHTTPConduitFactory(Map<String,Object> conf)
           
 
Method Summary
 org.apache.http.impl.nio.client.CloseableHttpAsyncClient createClient(AsyncHTTPConduit c)
           
 org.apache.cxf.transport.http.HTTPConduit createConduit(org.apache.cxf.Bus bus, org.apache.cxf.service.model.EndpointInfo localInfo, org.apache.cxf.ws.addressing.EndpointReferenceType target)
           
 org.apache.cxf.transport.http.HTTPConduit createConduit(org.apache.cxf.transport.http.HTTPTransportFactory f, org.apache.cxf.Bus bus, org.apache.cxf.service.model.EndpointInfo localInfo, org.apache.cxf.ws.addressing.EndpointReferenceType target)
           
 AsyncHTTPConduitFactory.UseAsyncPolicy getUseAsyncPolicy()
           
 void initComplete()
           
 boolean isShutdown()
           
 void postShutdown()
           
 void preShutdown()
           
 void setBus(org.apache.cxf.Bus b)
           
 void setupNIOClient(org.apache.cxf.transports.http.configuration.HTTPClientPolicy clientPolicy)
           
 void shutdown()
           
 void update(Map<String,Object> props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

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
Constructor Detail

AsyncHTTPConduitFactory

public AsyncHTTPConduitFactory(Map<String,Object> conf)

AsyncHTTPConduitFactory

public AsyncHTTPConduitFactory(org.apache.cxf.Bus b)
Method Detail

getUseAsyncPolicy

public AsyncHTTPConduitFactory.UseAsyncPolicy getUseAsyncPolicy()

update

public void update(Map<String,Object> props)

isShutdown

public boolean isShutdown()

createConduit

public org.apache.cxf.transport.http.HTTPConduit createConduit(org.apache.cxf.transport.http.HTTPTransportFactory f,
                                                               org.apache.cxf.Bus bus,
                                                               org.apache.cxf.service.model.EndpointInfo localInfo,
                                                               org.apache.cxf.ws.addressing.EndpointReferenceType target)
                                                        throws IOException
Specified by:
createConduit in interface org.apache.cxf.transport.http.HTTPConduitFactory
Throws:
IOException

createConduit

public org.apache.cxf.transport.http.HTTPConduit createConduit(org.apache.cxf.Bus bus,
                                                               org.apache.cxf.service.model.EndpointInfo localInfo,
                                                               org.apache.cxf.ws.addressing.EndpointReferenceType target)
                                                        throws IOException
Throws:
IOException

setBus

public void setBus(org.apache.cxf.Bus b)

initComplete

public void initComplete()
Specified by:
initComplete in interface org.apache.cxf.buslifecycle.BusLifeCycleListener

preShutdown

public void preShutdown()
Specified by:
preShutdown in interface org.apache.cxf.buslifecycle.BusLifeCycleListener

postShutdown

public void postShutdown()
Specified by:
postShutdown in interface org.apache.cxf.buslifecycle.BusLifeCycleListener

shutdown

public void shutdown()

setupNIOClient

public void setupNIOClient(org.apache.cxf.transports.http.configuration.HTTPClientPolicy clientPolicy)
                    throws org.apache.http.nio.reactor.IOReactorException
Throws:
org.apache.http.nio.reactor.IOReactorException

createClient

public org.apache.http.impl.nio.client.CloseableHttpAsyncClient createClient(AsyncHTTPConduit c)
                                                                      throws IOException
Throws:
IOException


Apache CXF