Class SlotState.Embargoed
java.lang.Object
akka.http.impl.engine.client.pool.SlotState
akka.http.impl.engine.client.pool.SlotState.Embargoed
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
- Enclosing class:
- SlotState
- See Also:
-
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
-
Method Summary
Modifier and TypeMethodDescriptionscala.concurrent.duration.FiniteDuration
boolean
boolean
isIdle()
onNewConnectionEmbargo
(SlotContext ctx, scala.concurrent.duration.FiniteDuration embargoDuration) onTimeout
(SlotContext ctx) scala.concurrent.duration.Duration
A slot can define a timeout for that state after which onTimeout will be called.Methods inherited from class akka.http.impl.engine.client.pool.SlotState
idle, illegalState, name, onConnectionAttemptFailed, onConnectionAttemptSucceeded, onConnectionCompleted, onConnectionFailed, onNewRequest, onPreConnect, onRequestDispatched, onRequestEntityCompleted, onRequestEntityFailed, onResponseDispatchable, onResponseEntityCompleted, onResponseEntityFailed, onResponseEntitySubscribed, onResponseReceived, onShutdown
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
Embargoed
public Embargoed(scala.concurrent.duration.FiniteDuration embargoDuration)
-
-
Method Details
-
embargoDuration
public scala.concurrent.duration.FiniteDuration embargoDuration() -
isConnected
public boolean isConnected()- Specified by:
isConnected
in classSlotState
-
isIdle
public boolean isIdle() -
stateTimeout
public scala.concurrent.duration.Duration stateTimeout()Description copied from class:SlotState
A slot can define a timeout for that state after which onTimeout will be called.- Overrides:
stateTimeout
in classSlotState
-
onTimeout
-
onNewConnectionEmbargo
public SlotState onNewConnectionEmbargo(SlotContext ctx, scala.concurrent.duration.FiniteDuration embargoDuration) - Overrides:
onNewConnectionEmbargo
in classSlotState
-