- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.client.HttpDestination
-
- org.eclipse.jetty.client.MultiplexHttpDestination
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,Destination
,HttpDestination.Multiplexed
,org.eclipse.jetty.util.Callback
,org.eclipse.jetty.util.component.Container
,org.eclipse.jetty.util.component.Destroyable
,org.eclipse.jetty.util.component.Dumpable
,org.eclipse.jetty.util.component.Dumpable.DumpableContainer
,org.eclipse.jetty.util.component.LifeCycle
,org.eclipse.jetty.util.thread.Invocable
public class MultiplexHttpDestination extends HttpDestination implements HttpDestination.Multiplexed
A destination for those transports that are multiplex (e.g. HTTP/2).
Transports that negotiate the protocol, and therefore do not know in advance whether they are duplex or multiplex, should use this class and when the cardinality is known call
setMaxRequestsPerConnection(int)
with the proper cardinality.If the cardinality is
1
, the behavior of this class is similar to that ofDuplexHttpDestination
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.client.HttpDestination
HttpDestination.Multiplexed
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopException
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
org.eclipse.jetty.util.Callback.Completable, org.eclipse.jetty.util.Callback.Completing, org.eclipse.jetty.util.Callback.InvocableCallback, org.eclipse.jetty.util.Callback.Nested
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer
-
-
Constructor Summary
Constructors Constructor Description MultiplexHttpDestination(HttpClient client, Origin origin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxRequestsPerConnection()
void
setMaxRequestsPerConnection(int maxRequestsPerConnection)
-
Methods inherited from class org.eclipse.jetty.client.HttpDestination
abort, accept, asString, close, createConnection, doStart, doStop, dump, enqueue, failed, getClientConnectionFactory, getConnectAddress, getConnectionPool, getHost, getHostField, getHttpClient, getHttpExchanges, getOrigin, getPort, getProxy, getQueuedRequestCount, getRequestNotifier, getResponseNotifier, getScheme, isSecure, newConnection, newConnectionPool, newExchangeQueue, newSslClientConnectionFactory, release, remove, remove, send, send, send, send, succeeded, toString
-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListeners
-
-
-
-
Constructor Detail
-
MultiplexHttpDestination
public MultiplexHttpDestination(HttpClient client, Origin origin)
-
-
Method Detail
-
getMaxRequestsPerConnection
@ManagedAttribute("The maximum number of concurrent requests per connection") public int getMaxRequestsPerConnection()
-
setMaxRequestsPerConnection
public void setMaxRequestsPerConnection(int maxRequestsPerConnection)
- Specified by:
setMaxRequestsPerConnection
in interfaceHttpDestination.Multiplexed
-
-