Skip to main content
Version: 0.17

Class: RequestStrategy

Hierarchy​

Constructors​

constructor​

• new RequestStrategy(options)

Parameters​

NameType
optionsRequestStrategyOptions

Overrides​

ConnectionStrategy.constructor

Defined in​

strategies/request-strategy.ts:35

Properties​

passHints​

• passHints: boolean

Defined in​

strategies/request-strategy.ts:33

Accessors​

blocking​

• get blocking(): boolean | (...args: any[]) => boolean

Returns​

boolean | (...args: any[]) => boolean

Inherited from​

ConnectionStrategy.blocking

Defined in​

strategies/connection-strategy.ts:115


coordinator​

• get coordinator(): undefined | Coordinator

Returns​

undefined | Coordinator

Inherited from​

ConnectionStrategy.coordinator

Defined in​

strategy.ts:90


logLevel​

• get logLevel(): undefined | LogLevel

Returns​

undefined | LogLevel

Inherited from​

ConnectionStrategy.logLevel

Defined in​

strategy.ts:102


logPrefix​

• get logPrefix(): string

Returns​

string

Inherited from​

ConnectionStrategy.logPrefix

Defined in​

strategy.ts:98


name​

• get name(): string

Returns​

string

Inherited from​

ConnectionStrategy.name

Defined in​

strategy.ts:86


source​

• get source(): Source<RequestOptions, RequestOptions, unknown, unknown>

Returns​

Source<RequestOptions, RequestOptions, unknown, unknown>

Inherited from​

ConnectionStrategy.source

Defined in​

strategies/connection-strategy.ts:107


sources​

• get sources(): Source<RequestOptions, RequestOptions, unknown, unknown>[]

Returns​

Source<RequestOptions, RequestOptions, unknown, unknown>[]

Inherited from​

ConnectionStrategy.sources

Defined in​

strategy.ts:94


target​

• get target(): Source<RequestOptions, RequestOptions, unknown, unknown>

Returns​

Source<RequestOptions, RequestOptions, unknown, unknown>

Inherited from​

ConnectionStrategy.target

Defined in​

strategies/connection-strategy.ts:111

Methods​

activate​

â–¸ activate(coordinator, options?): Promise<void>

Parameters​

NameType
coordinatorCoordinator
optionsActivationOptions

Returns​

Promise<void>

Inherited from​

ConnectionStrategy.activate

Defined in​

strategies/connection-strategy.ts:119


afterSourceActivation​

â–¸ afterSourceActivation(): Promise<void>

Returns​

Promise<void>

Inherited from​

ConnectionStrategy.afterSourceActivation

Defined in​

strategy.ts:81


afterSourceDeactivation​

â–¸ afterSourceDeactivation(): Promise<void>

Returns​

Promise<void>

Inherited from​

ConnectionStrategy.afterSourceDeactivation

Defined in​

strategy.ts:84


beforeSourceActivation​

â–¸ beforeSourceActivation(): Promise<void>

Returns​

Promise<void>

Inherited from​

ConnectionStrategy.beforeSourceActivation

Defined in​

strategy.ts:80


beforeSourceDeactivation​

â–¸ beforeSourceDeactivation(): Promise<void>

Returns​

Promise<void>

Inherited from​

ConnectionStrategy.beforeSourceDeactivation

Defined in​

strategy.ts:83


deactivate​

â–¸ deactivate(): Promise<void>

Returns​

Promise<void>

Inherited from​

ConnectionStrategy.deactivate

Defined in​

strategies/connection-strategy.ts:128