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 TypeMethodDescriptionboolean
boolean
scala.Option<scala.util.Try<HttpResponse>>
void
dispatchResponseResult
(PoolFlow.RequestContext req, scala.util.Try<HttpResponse> result) <T> T
expectOpenConnection
(scala.Function0<T> cb) boolean
org.apache.pekko.event.LoggingAdapter
log()
void
scala.Option<HttpRequest>
settings()
boolean
willCloseAfter
(HttpResponse response) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.pekko.macros.LogHelper
isDebugEnabled, isInfoEnabled, isWarningEnabled, prefixString
-
Constructor Details
-
MockSlotContext
-
-
Method Details
-
settings
- Specified by:
settings
in 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:
openConnection
in classSlotContext
-
isConnectionClosed
public boolean isConnectionClosed()- Specified by:
isConnectionClosed
in classSlotContext
-
dispatchResponseResult
public void dispatchResponseResult(PoolFlow.RequestContext req, scala.util.Try<HttpResponse> result) - Specified by:
dispatchResponseResult
in classSlotContext
-
willCloseAfter
- Specified by:
willCloseAfter
in classSlotContext
-
expectOpenConnection
public <T> T expectOpenConnection(scala.Function0<T> cb)
-