Destination, Container, Destroyable, Dumpable, LifeCycle, Promise<Connection>public abstract class MultiplexHttpDestination<C extends Connection> extends HttpDestination implements Promise<Connection>
AbstractLifeCycle.AbstractLifeCycleListenerContainer.InheritedListener, Container.ListenerLifeCycle.ListenerPromise.Adapter<C extends java.lang.Object>, Promise.Wrapper<W extends java.lang.Object>FAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPINGLOG| Modifier | Constructor | Description |
|---|---|---|
protected |
MultiplexHttpDestination(HttpClient client,
Origin origin) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
close(Connection connection) |
|
void |
failed(java.lang.Throwable x) |
|
int |
getMaxRequestsPerConnection() |
|
protected boolean |
process(C connection) |
|
void |
release(Connection connection) |
|
void |
send() |
|
protected abstract SendFailure |
send(C connection,
HttpExchange exchange) |
|
void |
setMaxRequestsPerConnection(int maxRequestsPerConnection) |
|
void |
succeeded(Connection result) |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopaddBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansabort, asString, createConnection, dump, enqueue, getClientConnectionFactory, getConnectAddress, getHost, getHostField, getHttpClient, getHttpExchanges, getOrigin, getPort, getProxy, getQueuedRequestCount, getRequestNotifier, getResponseNotifier, getScheme, newConnection, newExchangeQueue, newSslClientConnectionFactory, remove, send, toStringprotected MultiplexHttpDestination(HttpClient client, Origin origin)
public int getMaxRequestsPerConnection()
public void setMaxRequestsPerConnection(int maxRequestsPerConnection)
public void send()
send in class HttpDestinationpublic void succeeded(Connection result)
succeeded in interface Promise<C extends Connection>public void failed(java.lang.Throwable x)
failed in interface Promise<C extends Connection>protected boolean process(C connection)
public void release(Connection connection)
release in class HttpDestinationpublic void close()
close in class HttpDestinationpublic void close(Connection connection)
close in class HttpDestinationprotected abstract SendFailure send(C connection, HttpExchange exchange)
Copyright © 1995–2017 Webtide. All rights reserved.