Class SlotState
java.lang.Object
org.apache.pekko.http.impl.engine.client.pool.SlotState
- All Implemented Interfaces:
- scala.Equals,- scala.Product
- Direct Known Subclasses:
- SlotState.ConnectedState,- SlotState.Embargoed,- SlotState.OutOfEmbargo$,- SlotState.ShouldCloseConnectionState,- SlotState.Unconnected$
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic classstatic final classstatic classstatic classstatic classstatic classstatic classstatic final classstatic classstatic interfacestatic classstatic classstatic final classstatic classstatic classstatic classstatic classstatic interfacestatic classstatic final classstatic classstatic final classstatic classstatic final classstatic classstatic final classstatic class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionidle(SlotContext ctx) protected SlotStateillegalState(SlotContext ctx, String what) abstract booleanabstract booleanisIdle()name()onConnectionAttemptFailed(SlotContext ctx, Throwable cause) onConnectionAttemptSucceeded(SlotContext ctx, Http.OutgoingConnection outgoingConnection) onConnectionFailed(SlotContext ctx, Throwable cause) onNewConnectionEmbargo(SlotContext ctx, scala.concurrent.duration.FiniteDuration embargoDuration) onNewRequest(SlotContext ctx, PoolFlow.RequestContext requestContext) onPreConnect(SlotContext ctx) Will be called either immediately if the request entity is strict or otherwise lateronRequestEntityFailed(SlotContext ctx, Throwable cause) Called when the response out port is ready to receive a further response (successful or failed)Will be called either immediately if the response entity is strict or otherwise lateronResponseEntityFailed(SlotContext ctx, Throwable cause) onResponseReceived(SlotContext ctx, HttpResponse response) voidonShutdown(SlotContext ctx) onTimeout(SlotContext ctx) scala.concurrent.duration.DurationA slot can define a timeout for that state after which onTimeout will be called.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
SlotStatepublic SlotState()
 
- 
- 
Method Details- 
isIdlepublic abstract boolean isIdle()
- 
isConnectedpublic abstract boolean isConnected()
- 
idle
- 
onPreConnect
- 
onConnectionAttemptSucceededpublic SlotState onConnectionAttemptSucceeded(SlotContext ctx, Http.OutgoingConnection outgoingConnection) 
- 
onConnectionAttemptFailed
- 
onNewConnectionEmbargopublic SlotState onNewConnectionEmbargo(SlotContext ctx, scala.concurrent.duration.FiniteDuration embargoDuration) 
- 
onNewRequest
- 
onRequestDispatched
- 
onRequestEntityCompletedWill be called either immediately if the request entity is strict or otherwise later
- 
onRequestEntityFailed
- 
onResponseReceived
- 
onResponseDispatchableCalled when the response out port is ready to receive a further response (successful or failed)
- 
onResponseEntitySubscribed
- 
onResponseEntityCompletedWill be called either immediately if the response entity is strict or otherwise later
- 
onResponseEntityFailed
- 
onConnectionCompleted
- 
onConnectionFailed
- 
onTimeout
- 
onShutdown
- 
stateTimeoutpublic scala.concurrent.duration.Duration stateTimeout()A slot can define a timeout for that state after which onTimeout will be called.
- 
illegalState
- 
name
 
-