Logos DX
    Preparing search index...

    Interface PolicyInternalState<TRule, S, H, P>

    Internal state managed by ResiliencePolicy base class.

    This is the memoized state computed from config during initialization.

    interface PolicyInternalState<TRule, S = any, H = any, P = any> {
        enabled: boolean;
        methods: Set<string>;
        rulesCache: Map<string, TRule | null>;
        serializer: RequestSerializer<S, H, P>;
    }

    Type Parameters

    • TRule

      The specific rule type that extends BasePolicyRule

    • S = any

      Instance state type (defaults to any for flexibility)

    • H = any

      Headers type (defaults to any for flexibility)

    • P = any

      Params type (defaults to any for flexibility)

    Index

    Properties

    enabled: boolean

    Whether the policy is globally enabled

    methods: Set<string>

    Set of HTTP methods this policy applies to

    rulesCache: Map<string, TRule | null>

    Memoized rule cache: method:path -> resolved rule or null

    serializer: RequestSerializer<S, H, P>

    The serializer function for key generation