Class: ConnectionStrategy
Hierarchy​
↳
ConnectionStrategy
↳↳
RequestStrategy
↳↳
SyncStrategy
Constructors​
constructor​
• new ConnectionStrategy(options
)
Parameters​
Name | Type |
---|---|
options | ConnectionStrategyOptions |
Overrides​
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​
logLevel​
• get
logLevel(): undefined
| LogLevel
Returns​
undefined
| LogLevel
Inherited from​
Strategy.logLevel
Defined in​
logPrefix​
• get
logPrefix(): string
Returns​
string
Inherited from​
Strategy.logPrefix
Defined in​
name​
• get
name(): string
Returns​
string
Inherited from​
Strategy.name
Defined in​
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​
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​
Name | Type |
---|---|
coordinator | Coordinator |
options | ActivationOptions |
Returns​
Promise
<void
>
Overrides​
Defined in​
strategies/connection-strategy.ts:119
afterSourceActivation​
â–¸ afterSourceActivation(): Promise
<void
>
Returns​
Promise
<void
>
Inherited from​
Strategy.afterSourceActivation
Defined in​
afterSourceDeactivation​
â–¸ afterSourceDeactivation(): Promise
<void
>
Returns​
Promise
<void
>
Inherited from​
Strategy.afterSourceDeactivation
Defined in​
beforeSourceActivation​
â–¸ beforeSourceActivation(): Promise
<void
>
Returns​
Promise
<void
>
Inherited from​
Strategy.beforeSourceActivation
Defined in​
beforeSourceDeactivation​
â–¸ beforeSourceDeactivation(): Promise
<void
>
Returns​
Promise
<void
>
Inherited from​
Strategy.beforeSourceDeactivation
Defined in​
deactivate​
â–¸ deactivate(): Promise
<void
>
Returns​
Promise
<void
>