Package io.hyperfoil.http.connection
Class SessionConnectionPool
- java.lang.Object
-
- io.hyperfoil.http.connection.SessionConnectionPool
-
- All Implemented Interfaces:
HttpConnectionPool
public class SessionConnectionPool extends java.lang.Object implements HttpConnectionPool
-
-
Constructor Summary
Constructors Constructor Description SessionConnectionPool(HttpConnectionPool shared, int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacquire(boolean exclusiveConnection, ConnectionConsumer consumer)voidafterRequestSent(HttpConnection connection)HttpClientPoolclientPool()java.util.Collection<? extends HttpConnection>connections()voiddecrementInFlight()io.netty.channel.EventLoopexecutor()voidincrementInFlight()voidonSessionReset()voidpulse()voidrelease(HttpConnection connection, boolean becameAvailable, boolean afterRequest)voidshutdown()voidstart(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)voidvisitConnectionStats(ConnectionStatsConsumer consumer)intwaitingSessions()
-
-
-
Constructor Detail
-
SessionConnectionPool
public SessionConnectionPool(HttpConnectionPool shared, int capacity)
-
-
Method Detail
-
clientPool
public HttpClientPool clientPool()
- Specified by:
clientPoolin interfaceHttpConnectionPool
-
acquire
public void acquire(boolean exclusiveConnection, ConnectionConsumer consumer)- Specified by:
acquirein interfaceHttpConnectionPool
-
afterRequestSent
public void afterRequestSent(HttpConnection connection)
- Specified by:
afterRequestSentin interfaceHttpConnectionPool
-
waitingSessions
public int waitingSessions()
- Specified by:
waitingSessionsin interfaceHttpConnectionPool
-
executor
public io.netty.channel.EventLoop executor()
- Specified by:
executorin interfaceHttpConnectionPool
-
pulse
public void pulse()
- Specified by:
pulsein interfaceHttpConnectionPool
-
connections
public java.util.Collection<? extends HttpConnection> connections()
- Specified by:
connectionsin interfaceHttpConnectionPool
-
release
public void release(HttpConnection connection, boolean becameAvailable, boolean afterRequest)
- Specified by:
releasein interfaceHttpConnectionPool
-
onSessionReset
public void onSessionReset()
- Specified by:
onSessionResetin interfaceHttpConnectionPool
-
incrementInFlight
public void incrementInFlight()
- Specified by:
incrementInFlightin interfaceHttpConnectionPool
-
decrementInFlight
public void decrementInFlight()
- Specified by:
decrementInFlightin interfaceHttpConnectionPool
-
visitConnectionStats
public void visitConnectionStats(ConnectionStatsConsumer consumer)
- Specified by:
visitConnectionStatsin interfaceHttpConnectionPool
-
start
public void start(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
- Specified by:
startin interfaceHttpConnectionPool
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceHttpConnectionPool
-
-