HttpClientTransport, ClientConnectionFactory, Container, Destroyable, Dumpable, LifeCycle@ManagedObject("The HTTP/2 client transport") public class HttpClientTransportOverHTTP2 extends AbstractHttpClientTransport
AbstractLifeCycle.AbstractLifeCycleListenerContainer.InheritedListener, Container.ListenerLifeCycle.ListenerLOGFAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPINGCONNECTOR_CONTEXT_KEYHTTP_CONNECTION_PROMISE_CONTEXT_KEY, HTTP_DESTINATION_CONTEXT_KEY| Constructor | Description |
|---|---|
HttpClientTransportOverHTTP2(HTTP2Client client) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
connect(java.net.InetSocketAddress address,
java.util.Map<java.lang.String,java.lang.Object> context) |
|
protected void |
doStart() |
|
protected void |
doStop() |
|
int |
getSelectors() |
|
boolean |
isUseALPN() |
|
Connection |
newConnection(EndPoint endPoint,
java.util.Map<java.lang.String,java.lang.Object> context) |
|
protected HttpConnectionOverHTTP2 |
newHttpConnection(HttpDestination destination,
Session session) |
|
HttpDestination |
newHttpDestination(Origin origin) |
|
protected void |
onClose(HttpConnectionOverHTTP2 connection,
GoAwayFrame frame) |
|
void |
setUseALPN(boolean useALPN) |
getConnectionPoolFactory, getHttpClient, setConnectionPoolFactory, setHttpClientaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopcustomizeaddBean, 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, updateBeanspublic HttpClientTransportOverHTTP2(HTTP2Client client)
@ManagedAttribute(value="The number of selectors", readonly=true) public int getSelectors()
public boolean isUseALPN()
public void setUseALPN(boolean useALPN)
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 HttpDestination newHttpDestination(Origin origin)
public void connect(java.net.InetSocketAddress address,
java.util.Map<java.lang.String,java.lang.Object> context)
public Connection newConnection(EndPoint endPoint, java.util.Map<java.lang.String,java.lang.Object> context) throws java.io.IOException
java.io.IOExceptionprotected HttpConnectionOverHTTP2 newHttpConnection(HttpDestination destination, Session session)
protected void onClose(HttpConnectionOverHTTP2 connection, GoAwayFrame frame)
Copyright © 1995–2017 Webtide. All rights reserved.