DefaultBulkhead

constructor(config: BulkheadConfig, onRejected: (reason: String) -> Unit? = null)

Parameters

config

The BulkheadConfig used to configure this instance.

onRejected

Optional callback invoked synchronously when a call is rejected before throwing BulkheadFullException. Receives a human-readable reason string. Used for telemetry (e.g. emitting com.santimattius.resilient.telemetry.ResilientEvent.BulkheadRejected) regardless of whether a Fallback policy is configured.