Class 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 of DuplexHttpDestination.

    • Nested Class Summary

      • 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
      • Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable

        org.eclipse.jetty.util.thread.Invocable.InvocationType
      • Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

        org.eclipse.jetty.util.component.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.Callback

        NOOP
      • Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

        KEY
      • Fields inherited from interface org.eclipse.jetty.util.thread.Invocable

        __nonBlocking
    • Constructor Detail

      • MultiplexHttpDestination

        public MultiplexHttpDestination​(HttpClient client,
                                        Origin origin)
    • Method Detail

      • getMaxRequestsPerConnection

        @ManagedAttribute("The maximum number of concurrent requests per connection")
        public int getMaxRequestsPerConnection()