Class SlotState.WaitingForResponseDispatch
- java.lang.Object
-
- akka.http.impl.engine.client.pool.SlotState
-
- akka.http.impl.engine.client.pool.SlotState.ConnectedState
-
- akka.http.impl.engine.client.pool.SlotState.WaitingForResponseDispatch
-
- All Implemented Interfaces:
SlotState.BusyState
,SlotState.BusyWithResultAlreadyDetermined
,java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing class:
- SlotState
public static final class SlotState.WaitingForResponseDispatch extends SlotState.ConnectedState implements SlotState.BusyWithResultAlreadyDetermined, scala.Product, java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.http.impl.engine.client.pool.SlotState
SlotState.BusyState, SlotState.BusyWithResultAlreadyDetermined, SlotState.ConnectedState, SlotState.Connecting, SlotState.Connecting$, SlotState.Embargoed, SlotState.Embargoed$, SlotState.Failed, SlotState.Failed$, SlotState.Idle, SlotState.Idle$, SlotState.IdleState, SlotState.OutOfEmbargo$, SlotState.PreConnecting$, SlotState.PushingRequestToConnection, SlotState.PushingRequestToConnection$, SlotState.ShouldCloseConnectionState, SlotState.ToBeClosed$, SlotState.Unconnected$, SlotState.UnconnectedState, SlotState.WaitingForEndOfRequestEntity$, SlotState.WaitingForEndOfResponseEntity, SlotState.WaitingForEndOfResponseEntity$, SlotState.WaitingForResponse, SlotState.WaitingForResponse$, SlotState.WaitingForResponseDispatch, SlotState.WaitingForResponseDispatch$, SlotState.WaitingForResponseEntitySubscription, SlotState.WaitingForResponseEntitySubscription$
-
-
Constructor Summary
Constructors Constructor Description WaitingForResponseDispatch(PoolFlow.RequestContext ongoingRequest, scala.util.Try<HttpResponse> result, boolean waitingForEndOfRequestEntity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PoolFlow.RequestContext
ongoingRequest()
SlotState
onRequestEntityCompleted(SlotContext ctx)
Will be called either immediately if the request entity is strict or otherwise laterSlotState
onResponseDispatchable(SlotContext ctx)
Called when the response out port is ready to receive a further response (successful or failed)scala.util.Try<HttpResponse>
result()
boolean
waitingForEndOfRequestEntity()
-
Methods inherited from class akka.http.impl.engine.client.pool.SlotState.ConnectedState
isConnected, onNewConnectionEmbargo
-
Methods inherited from class akka.http.impl.engine.client.pool.SlotState
idle, illegalState, isIdle, name, onConnectionAttemptFailed, onConnectionAttemptSucceeded, onConnectionCompleted, onConnectionFailed, onNewRequest, onPreConnect, onRequestDispatched, onRequestEntityFailed, onResponseEntityCompleted, onResponseEntityFailed, onResponseEntitySubscribed, onResponseReceived, onShutdown, onTimeout, stateTimeout
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Methods inherited from interface akka.http.impl.engine.client.pool.SlotState.BusyState
failOngoingRequest, isIdle, onConnectionAttemptFailed, onShutdown
-
Methods inherited from interface akka.http.impl.engine.client.pool.SlotState.BusyWithResultAlreadyDetermined
onConnectionCompleted, onConnectionFailed, onRequestEntityFailed, onResponseEntityFailed
-
-
-
-
Constructor Detail
-
WaitingForResponseDispatch
public WaitingForResponseDispatch(PoolFlow.RequestContext ongoingRequest, scala.util.Try<HttpResponse> result, boolean waitingForEndOfRequestEntity)
-
-
Method Detail
-
ongoingRequest
public PoolFlow.RequestContext ongoingRequest()
- Specified by:
ongoingRequest
in interfaceSlotState.BusyState
-
result
public scala.util.Try<HttpResponse> result()
-
waitingForEndOfRequestEntity
public boolean waitingForEndOfRequestEntity()
- Specified by:
waitingForEndOfRequestEntity
in interfaceSlotState.BusyState
-
onRequestEntityCompleted
public SlotState onRequestEntityCompleted(SlotContext ctx)
Description copied from class:SlotState
Will be called either immediately if the request entity is strict or otherwise later- Overrides:
onRequestEntityCompleted
in classSlotState
-
onResponseDispatchable
public SlotState onResponseDispatchable(SlotContext ctx)
Called when the response out port is ready to receive a further response (successful or failed)- Overrides:
onResponseDispatchable
in classSlotState
-
-