Package org.eclipse.jetty.client
Class DuplexConnectionPool
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.client.AbstractConnectionPool
org.eclipse.jetty.client.DuplexConnectionPool
- All Implemented Interfaces:
ConnectionPool,Container,Destroyable,Dumpable,Dumpable.DumpableContainer,LifeCycle,Sweeper.Sweepable
- Direct Known Subclasses:
ValidatingConnectionPool
A connection pool that provides connections for both directions of communication.
This pool uses a ConcurrentPool with ConcurrentPool.StrategyType.FIRST
to manage connections efficiently.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.client.ConnectionPool
ConnectionPool.Factory, ConnectionPool.MaxMultiplexable, ConnectionPool.MaxUsableNested 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.DumpableContainer, Dumpable.DumpAppendableNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDuplexConnectionPool(Destination destination, int maxConnections) Creates a duplex connection pool for the given destination. -
Method Summary
Methods inherited from class org.eclipse.jetty.client.AbstractConnectionPool
accept, acquire, activate, deactivate, doStart, doStop, dump, getActiveConnectionCount, getConnectionCount, getIdleConnectionCount, getInitialMaxMultiplex, getMaxConnectionCount, getMaxDuration, getMaxUsage, getPendingConnectionCount, isActive, isEmpty, isMaximizeConnections, onCreated, onRemoved, preCreateConnections, proceed, release, remove, setInitialMaxMultiplex, setMaxDuration, setMaximizeConnections, setMaxUsage, sweep, toString, tryCreateMethods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, 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.component.Container
getCachedBeans, getEventListenersMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
DuplexConnectionPool
Creates a duplex connection pool for the given destination.- Parameters:
destination- the destination for which this pool provides connectionsmaxConnections- the maximum number of connections in the pool
-