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.MultiplexedNested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Completable, Callback.Completing, Callback.NestedNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType, Invocable.ReadyTask, Invocable.TaskNested 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, STOPPINGFields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking -
Constructor Summary
ConstructorsConstructorDescriptionMultiplexHttpDestination(HttpClient client, Origin origin) MultiplexHttpDestination(HttpClient client, Origin origin, boolean intrinsicallySecure) -
Method Summary
Modifier and TypeMethodDescriptionintvoidsetMaxRequestsPerConnection(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, toStringMethods 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, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.Callback
completeWithMethods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListenersMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpableMethods 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:
setMaxRequestsPerConnectionin interfaceHttpDestination.Multiplexed
-