Package org.eclipse.jetty.client
Class MultiplexHttpDestination
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:
Closeable
,AutoCloseable
,Destination
,HttpDestination.Multiplexed
,Callback
,Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
,Invocable
,Sweeper.Sweepable
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 of DuplexHttpDestination
.
-
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
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Completable, Callback.Completing, Callback.Nested
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType, Invocable.ReadyTask, Invocable.Task
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, STARTED, STARTING, STOPPED, STOPPING
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
Constructor Summary
ConstructorDescriptionMultiplexHttpDestination
(HttpClient client, Origin origin) MultiplexHttpDestination
(HttpClient client, Origin origin, boolean intrinsicallySecure) -
Method Summary
Modifier and TypeMethodDescriptionint
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, getIdle, getOrigin, getPort, getProxy, getQueuedRequestCount, getRequestNotifier, getResponseNotifier, getScheme, isSecure, isStale, newConnection, newConnectionPool, newExchangeQueue, newSslClientConnectionFactory, release, remove, remove, send, send, send, send, send, stale, succeeded, sweep, 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, 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.Callback
completeWith
Methods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListeners
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
Methods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationType
-
Constructor Details
-
MultiplexHttpDestination
-
MultiplexHttpDestination
-
-
Method Details
-
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
-