public abstract class SlotState
extends java.lang.Object
implements scala.Product
Constructor and Description |
---|
SlotState() |
Modifier and Type | Method and Description |
---|---|
SlotState |
idle(SlotContext ctx) |
protected SlotState |
illegalState(SlotContext ctx,
java.lang.String what) |
abstract boolean |
isConnected() |
abstract boolean |
isIdle() |
java.lang.String |
name() |
SlotState |
onConnectionAttemptFailed(SlotContext ctx,
java.lang.Throwable cause) |
SlotState |
onConnectionAttemptSucceeded(SlotContext ctx,
Http.OutgoingConnection outgoingConnection) |
SlotState |
onConnectionCompleted(SlotContext ctx) |
SlotState |
onConnectionFailed(SlotContext ctx,
java.lang.Throwable cause) |
SlotState |
onNewConnectionEmbargo(SlotContext ctx,
scala.concurrent.duration.FiniteDuration embargoDuration) |
SlotState |
onNewRequest(SlotContext ctx,
PoolFlow.RequestContext requestContext) |
SlotState |
onPreConnect(SlotContext ctx) |
SlotState |
onRequestDispatched(SlotContext ctx) |
SlotState |
onRequestEntityCompleted(SlotContext ctx)
Will be called either immediately if the request entity is strict or otherwise later
|
SlotState |
onRequestEntityFailed(SlotContext ctx,
java.lang.Throwable cause) |
SlotState |
onResponseDispatchable(SlotContext ctx)
Called when the response out port is ready to receive a further response (successful or failed)
|
SlotState |
onResponseEntityCompleted(SlotContext ctx)
Will be called either immediately if the response entity is strict or otherwise later
|
SlotState |
onResponseEntityFailed(SlotContext ctx,
java.lang.Throwable cause) |
SlotState |
onResponseEntitySubscribed(SlotContext ctx) |
SlotState |
onResponseReceived(SlotContext ctx,
HttpResponse response) |
void |
onShutdown(SlotContext ctx) |
SlotState |
onTimeout(SlotContext ctx) |
scala.concurrent.duration.Duration |
stateTimeout()
A slot can define a timeout for that state after which onTimeout will be called.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public abstract boolean isIdle()
public abstract boolean isConnected()
public SlotState idle(SlotContext ctx)
public SlotState onPreConnect(SlotContext ctx)
public SlotState onConnectionAttemptSucceeded(SlotContext ctx, Http.OutgoingConnection outgoingConnection)
public SlotState onConnectionAttemptFailed(SlotContext ctx, java.lang.Throwable cause)
public SlotState onNewConnectionEmbargo(SlotContext ctx, scala.concurrent.duration.FiniteDuration embargoDuration)
public SlotState onNewRequest(SlotContext ctx, PoolFlow.RequestContext requestContext)
public SlotState onRequestDispatched(SlotContext ctx)
public SlotState onRequestEntityCompleted(SlotContext ctx)
public SlotState onRequestEntityFailed(SlotContext ctx, java.lang.Throwable cause)
public SlotState onResponseReceived(SlotContext ctx, HttpResponse response)
public SlotState onResponseDispatchable(SlotContext ctx)
public SlotState onResponseEntitySubscribed(SlotContext ctx)
public SlotState onResponseEntityCompleted(SlotContext ctx)
public SlotState onResponseEntityFailed(SlotContext ctx, java.lang.Throwable cause)
public SlotState onConnectionCompleted(SlotContext ctx)
public SlotState onConnectionFailed(SlotContext ctx, java.lang.Throwable cause)
public SlotState onTimeout(SlotContext ctx)
public void onShutdown(SlotContext ctx)
public scala.concurrent.duration.Duration stateTimeout()
protected SlotState illegalState(SlotContext ctx, java.lang.String what)
public java.lang.String name()