Class SlotStateSpec.MockSlotContext
java.lang.Object
org.apache.pekko.http.impl.engine.client.pool.SlotContext
org.apache.pekko.http.impl.engine.client.pool.SlotStateSpec.MockSlotContext
- All Implemented Interfaces:
org.apache.pekko.macros.LogHelper,org.apache.pekko.macros.LogHelperMacro
- Enclosing class:
- SlotStateSpec
-
Constructor Summary
ConstructorsConstructorDescriptionMockSlotContext(org.apache.pekko.event.LoggingAdapter _log, ConnectionPoolSettings settings) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanscala.Option<scala.util.Try<HttpResponse>>voiddispatchResponseResult(PoolFlow.RequestContext req, scala.util.Try<HttpResponse> result) <T> TexpectOpenConnection(scala.Function0<T> cb) booleanorg.apache.pekko.event.LoggingAdapterlog()voidscala.Option<HttpRequest>settings()booleanwillCloseAfter(HttpResponse response) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.macros.LogHelper
isDebugEnabled, isInfoEnabled, isWarningEnabled, prefixString
-
Constructor Details
-
MockSlotContext
-
-
Method Details
-
settings
- Specified by:
settingsin classSlotContext
-
log
public org.apache.pekko.event.LoggingAdapter log() -
connectionClosed
public boolean connectionClosed() -
connectionOpenRequested
public boolean connectionOpenRequested() -
pushedRequest
-
dispatchedResponse
-
openConnection
public void openConnection()- Specified by:
openConnectionin classSlotContext
-
isConnectionClosed
public boolean isConnectionClosed()- Specified by:
isConnectionClosedin classSlotContext
-
dispatchResponseResult
public void dispatchResponseResult(PoolFlow.RequestContext req, scala.util.Try<HttpResponse> result) - Specified by:
dispatchResponseResultin classSlotContext
-
willCloseAfter
- Specified by:
willCloseAfterin classSlotContext
-
expectOpenConnection
public <T> T expectOpenConnection(scala.Function0<T> cb)
-