Skip to main content
Version: 0.17

Class: ConnectionStrategy

Hierarchy​

Constructors​

constructor​

• new ConnectionStrategy(options)

Parameters​

NameType
optionsConnectionStrategyOptions

Overrides​

Strategy.constructor

Defined in​

strategies/connection-strategy.ts:66

Accessors​

blocking​

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

Returns​

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

Defined in​

strategies/connection-strategy.ts:115


coordinator​

• get coordinator(): undefined | Coordinator

Returns​

undefined | Coordinator

Inherited from​

Strategy.coordinator

Defined in​

strategy.ts:90


logLevel​

• get logLevel(): undefined | LogLevel

Returns​

undefined | LogLevel

Inherited from​

Strategy.logLevel

Defined in​

strategy.ts:102


logPrefix​

• get logPrefix(): string

Returns​

string

Inherited from​

Strategy.logPrefix

Defined in​

strategy.ts:98


name​

• get name(): string

Returns​

string

Inherited from​

Strategy.name

Defined in​

strategy.ts:86


source​

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

Returns​

Source<RequestOptions, RequestOptions, unknown, unknown>

Defined in​

strategies/connection-strategy.ts:107


sources​

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

Returns​

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

Inherited from​

Strategy.sources

Defined in​

strategy.ts:94


target​

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

Returns​

Source<RequestOptions, RequestOptions, unknown, unknown>

Defined in​

strategies/connection-strategy.ts:111

Methods​

activate​

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

Parameters​

NameType
coordinatorCoordinator
optionsActivationOptions

Returns​

Promise<void>

Overrides​

Strategy.activate

Defined in​

strategies/connection-strategy.ts:119


afterSourceActivation​

â–¸ afterSourceActivation(): Promise<void>

Returns​

Promise<void>

Inherited from​

Strategy.afterSourceActivation

Defined in​

strategy.ts:81


afterSourceDeactivation​

â–¸ afterSourceDeactivation(): Promise<void>

Returns​

Promise<void>

Inherited from​

Strategy.afterSourceDeactivation

Defined in​

strategy.ts:84


beforeSourceActivation​

â–¸ beforeSourceActivation(): Promise<void>

Returns​

Promise<void>

Inherited from​

Strategy.beforeSourceActivation

Defined in​

strategy.ts:80


beforeSourceDeactivation​

â–¸ beforeSourceDeactivation(): Promise<void>

Returns​

Promise<void>

Inherited from​

Strategy.beforeSourceDeactivation

Defined in​

strategy.ts:83


deactivate​

â–¸ deactivate(): Promise<void>

Returns​

Promise<void>

Overrides​

Strategy.deactivate

Defined in​

strategies/connection-strategy.ts:128