Package-level declarations
Types
Link copied to clipboard
class BulkheadConfig
A configuration builder for a Bulkhead.
Link copied to clipboard
Exception thrown when the bulkhead cannot accept a new call. This occurs when both the concurrent call limit and the waiting queue are full, or when waiting for a permit exceeds the configured BulkheadConfig.timeout.
Link copied to clipboard
class BulkheadRegistry
Registry of named DefaultBulkhead instances so multiple com.santimattius.resilient.ResilientPolicy configurations can share the same bulkhead limits (e.g. one pool per downstream "payments", "db").
Link copied to clipboard
Link copied to clipboard
class DefaultBulkhead(config: BulkheadConfig, onRejected: (reason: String) -> Unit? = null) : Bulkhead
A semaphore-based implementation of the Bulkhead pattern.