Class: Strategy
Hierarchy​
Strategy
Constructors​
constructor​
• new Strategy(options?
)
Parameters​
Name | Type |
---|---|
options | StrategyOptions |
Defined in​
Accessors​
coordinator​
• get
coordinator(): undefined
| Coordinator
Returns​
undefined
| Coordinator
Defined in​
logLevel​
• get
logLevel(): undefined
| LogLevel
Returns​
undefined
| LogLevel
Defined in​
logPrefix​
• get
logPrefix(): string
Returns​
string
Defined in​
name​
• get
name(): string
Returns​
string
Defined in​
sources​
• get
sources(): Source
<RequestOptions
, RequestOptions
, unknown
, unknown
>[]
Returns​
Source
<RequestOptions
, RequestOptions
, unknown
, unknown
>[]
Defined in​
Methods​
activate​
â–¸ activate(coordinator
, options?
): Promise
<void
>
Parameters​
Name | Type |
---|---|
coordinator | Coordinator |
options | ActivationOptions |
Returns​
Promise
<void
>
Defined in​
afterSourceActivation​
â–¸ afterSourceActivation(): Promise
<void
>
Returns​
Promise
<void
>
Defined in​
afterSourceDeactivation​
â–¸ afterSourceDeactivation(): Promise
<void
>
Returns​
Promise
<void
>
Defined in​
beforeSourceActivation​
â–¸ beforeSourceActivation(): Promise
<void
>
Returns​
Promise
<void
>
Defined in​
beforeSourceDeactivation​
â–¸ beforeSourceDeactivation(): Promise
<void
>
Returns​
Promise
<void
>
Defined in​
deactivate​
â–¸ deactivate(): Promise
<void
>
Returns​
Promise
<void
>