AlphaXResilienceMiddleware class final
Middleware implementing generic retry and circuit-breaker behavior for buffered operations.
It does not replay partially consumed streams or file transfers and does not encode a vendor-specific resilience policy.
- Inheritance
-
- Object
- AlphaXMiddleware
- AlphaXResilienceMiddleware
Constructors
- AlphaXResilienceMiddleware({AlphaXResiliencePolicy policy = const AlphaXResiliencePolicy()})
- Creates resilience middleware.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- policy → AlphaXResiliencePolicy
-
Resilience settings.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → AlphaXCircuitState
-
Current circuit state.
no setter
Methods
-
intercept(
AlphaXRequest request, AlphaXNext next) → Future< AlphaXResponse> -
Intercepts a buffered operation.
override
-
interceptDownload(
AlphaXRequest request, AlphaXFileTarget target, AlphaXDownloadNext next) → Future< AlphaXTransferResult> -
Intercepts a file download operation.
inherited
-
interceptStream(
AlphaXRequest request, AlphaXStreamNext next) → Stream< AlphaXEvent> -
Intercepts a streaming operation.
inherited
-
interceptUpload(
AlphaXRequest request, AlphaXFileSource source, AlphaXUploadNext next) → Future< AlphaXTransferResult> -
Intercepts a file upload operation.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited