HttpClientTransport
, ClientConnectionFactory
, Container
, Destroyable
, Dumpable
, LifeCycle
HttpClientTransportOverHTTP
@ManagedObject public abstract class AbstractConnectorHttpClientTransport extends AbstractHttpClientTransport
Modifier and Type | Class | Description |
---|---|---|
protected class |
AbstractConnectorHttpClientTransport.ClientSelectorManager |
AbstractLifeCycle.AbstractLifeCycleListener
Container.InheritedListener, Container.Listener
LifeCycle.Listener
LOG
FAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING
CONNECTOR_CONTEXT_KEY
HTTP_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, setHttpClient
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
customize, newConnection
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
newHttpDestination
protected AbstractConnectorHttpClientTransport(int selectors)
@ManagedAttribute(value="The number of selectors", readonly=true) public int getSelectors()
protected void doStart() throws java.lang.Exception
doStart
in class ContainerLifeCycle
java.lang.Exception
protected void doStop() throws java.lang.Exception
doStop
in class ContainerLifeCycle
java.lang.Exception
public void connect(java.net.InetSocketAddress address, java.util.Map<java.lang.String,java.lang.Object> context)
HttpClientTransport
address
.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.IOException
protected SelectorManager newSelectorManager(HttpClient client)
Copyright © 1995–2018 Webtide. All rights reserved.