HttpClientTransport, ClientConnectionFactory, Container, Destroyable, Dumpable, LifeCycleHttpClientTransportOverHTTPpublic abstract class AbstractConnectorHttpClientTransport extends AbstractHttpClientTransport
| Modifier and Type | Class | Description |
|---|---|---|
protected class |
AbstractConnectorHttpClientTransport.ClientSelectorManager |
AbstractLifeCycle.AbstractLifeCycleListenerContainer.InheritedListener, Container.ListenerLifeCycle.ListenerLOGFAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPINGCONNECTOR_CONTEXT_KEYHTTP_CONNECTION_PROMISE_CONTEXT_KEY, HTTP_DESTINATION_CONTEXT_KEY| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractConnectorHttpClientTransport(int selectors) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
configure(HttpClient client,
java.nio.channels.SocketChannel channel) |
|
void |
connect(java.net.InetSocketAddress address,
java.util.Map<java.lang.String,java.lang.Object> context) |
Establishes a physical connection to the given
address. |
protected void |
connectFailed(java.util.Map<java.lang.String,java.lang.Object> context,
java.lang.Throwable x) |
|
protected void |
doStart() |
|
protected void |
doStop() |
|
int |
getSelectors() |
|
protected SelectorManager |
newSelectorManager(HttpClient client) |
getConnectionPoolFactory, getHttpClient, setConnectionPoolFactory, setHttpClientaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopcustomize, newConnectionaddBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansnewHttpDestinationprotected AbstractConnectorHttpClientTransport(int selectors)
@ManagedAttribute(value="The number of selectors", readonly=true) public int getSelectors()
protected void doStart()
throws java.lang.Exception
doStart in class ContainerLifeCyclejava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
doStop in class ContainerLifeCyclejava.lang.Exceptionpublic void connect(java.net.InetSocketAddress address,
java.util.Map<java.lang.String,java.lang.Object> context)
HttpClientTransportaddress.address - the address to connect tocontext - the context information to establish the connectionprotected void connectFailed(java.util.Map<java.lang.String,java.lang.Object> context,
java.lang.Throwable x)
protected void configure(HttpClient client, java.nio.channels.SocketChannel channel) throws java.io.IOException
java.io.IOExceptionprotected SelectorManager newSelectorManager(HttpClient client)
Copyright © 1995–2017 Webtide. All rights reserved.