kinetex - v1.0.0-rc.1
    Preparing search index...

    Class CircuitBreakerRegistry

    Registry that manages one CircuitBreaker per key (typically per origin/host). Automatically creates breakers on first use.

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    Methods

    • Wrap a function call through the breaker for key. Creates the breaker if it doesn't exist.

      Type Parameters

      • T

      Parameters

      Returns Promise<T>

    • Manually trip the breaker for key (creates it if it doesn't exist).

      Parameters

      • key: string

      Returns void

    • Manually reset the breaker for key (creates it if it doesn't exist).

      Parameters

      • key: string

      Returns void