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 SummaryConstructorsConstructorDescriptionMockSlotContext(org.apache.pekko.event.LoggingAdapter _log, ConnectionPoolSettings settings) 
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.macros.LogHelperisDebugEnabled, isInfoEnabled, isWarningEnabled, prefixString
- 
Constructor Details- 
MockSlotContext
 
- 
- 
Method Details- 
settings- Specified by:
- settingsin class- SlotContext
 
- 
logpublic org.apache.pekko.event.LoggingAdapter log()
- 
connectionClosedpublic boolean connectionClosed()
- 
connectionOpenRequestedpublic boolean connectionOpenRequested()
- 
pushedRequest
- 
dispatchedResponse
- 
openConnectionpublic void openConnection()- Specified by:
- openConnectionin class- SlotContext
 
- 
isConnectionClosedpublic boolean isConnectionClosed()- Specified by:
- isConnectionClosedin class- SlotContext
 
- 
dispatchResponseResultpublic void dispatchResponseResult(PoolFlow.RequestContext req, scala.util.Try<HttpResponse> result) - Specified by:
- dispatchResponseResultin class- SlotContext
 
- 
willCloseAfter- Specified by:
- willCloseAfterin class- SlotContext
 
- 
expectOpenConnectionpublic <T> T expectOpenConnection(scala.Function0<T> cb) 
 
-