Skip to main content
Version: 0.17

Class: Strategy

Hierarchy​

Constructors​

constructor​

• new Strategy(options?)

Parameters​

NameType
optionsStrategyOptions

Defined in​

strategy.ts:45

Accessors​

coordinator​

• get coordinator(): undefined | Coordinator

Returns​

undefined | Coordinator

Defined in​

strategy.ts:90


logLevel​

• get logLevel(): undefined | LogLevel

Returns​

undefined | LogLevel

Defined in​

strategy.ts:102


logPrefix​

• get logPrefix(): string

Returns​

string

Defined in​

strategy.ts:98


name​

• get name(): string

Returns​

string

Defined in​

strategy.ts:86


sources​

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

Returns​

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

Defined in​

strategy.ts:94

Methods​

activate​

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

Parameters​

NameType
coordinatorCoordinator
optionsActivationOptions

Returns​

Promise<void>

Defined in​

strategy.ts:57


afterSourceActivation​

â–¸ afterSourceActivation(): Promise<void>

Returns​

Promise<void>

Defined in​

strategy.ts:81


afterSourceDeactivation​

â–¸ afterSourceDeactivation(): Promise<void>

Returns​

Promise<void>

Defined in​

strategy.ts:84


beforeSourceActivation​

â–¸ beforeSourceActivation(): Promise<void>

Returns​

Promise<void>

Defined in​

strategy.ts:80


beforeSourceDeactivation​

â–¸ beforeSourceDeactivation(): Promise<void>

Returns​

Promise<void>

Defined in​

strategy.ts:83


deactivate​

â–¸ deactivate(): Promise<void>

Returns​

Promise<void>

Defined in​

strategy.ts:76