OrderablePolicyType

Represents the types of resilience policies that can have their composition order configured.

Note: Fallback is excluded because it must always be positioned outermost (first) to catch all failures from other policies. It cannot be reordered.

Entries

Link copied to clipboard

Cache policy: returns cached result when available.

Link copied to clipboard

Coalescing policy: deduplicates concurrent in-flight requests by key.

Link copied to clipboard

Timeout policy: cancels execution after a maximum duration.

Link copied to clipboard

Retry policy: retries the operation on failure.

Link copied to clipboard

Circuit breaker: rejects calls when the circuit is open.

Link copied to clipboard

Rate limiter: limits the rate of executions.

Link copied to clipboard

Bulkhead: limits concurrent executions.

Link copied to clipboard

Hedging: runs multiple parallel attempts and returns the first success.

Link copied to clipboard

Chaos: injects faults, latency, or overridden results; innermost wrapper.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.