| Methods |
public
|
isInitialized(): bool
|
#
|
public
|
allowsRequest(non-empty-string $requestMethod): bool
|
#
|
public
|
markInitializeInFlight(): bool
Transitions AwaitingInitialize -> InitializeInFlight. Returns true if the transition fired.
Transitions AwaitingInitialize -> InitializeInFlight. Returns true if the transition fired.
|
#
|
public
|
markInitializeCompleted(): bool
From InitializeInFlight: if a notifications/initialized was buffered while the handler was
still running, transition straight to Initialized (consuming the pending flag). Otherwise
transition to InitializeCompleted to wait for the notification. Returns true if either
transition fired.
From InitializeInFlight: if a notifications/initialized was buffered while the handler was
still running, transition straight to Initialized (consuming the pending flag). Otherwise
transition to InitializeCompleted to wait for the notification. Returns true if either
transition fired.
|
#
|
public
|
markInitialized(): bool
From InitializeCompleted: transition to Initialized. From InitializeInFlight: buffer the
notification (the handler has not finished yet). markInitializeCompleted will consume the
buffered flag on success. Returns true if the notification was accepted (flipped the gate or
got buffered). Returns false when there is no in-flight handshake to apply the notification
to, or when a notification was already buffered (duplicate).
From InitializeCompleted: transition to Initialized. From InitializeInFlight: buffer the
notification (the handler has not finished yet). markInitializeCompleted will consume the
buffered flag on success. Returns true if the notification was accepted (flipped the gate or
got buffered). Returns false when there is no in-flight handshake to apply the notification
to, or when a notification was already buffered (duplicate).
|
#
|
public
|
revertInitializeInFlight(): bool
Reverts InitializeInFlight -> AwaitingInitialize. Also clears any buffered notification so a
retry handshake starts fresh. Returns true if the transition fired.
Reverts InitializeInFlight -> AwaitingInitialize. Also clears any buffered notification so a
retry handshake starts fresh. Returns true if the transition fired.
|
#
|