* Set the adapter.
(instance: AdapterInterface)
| 488 | * Set the adapter. |
| 489 | */ |
| 490 | setAdapter(instance: AdapterInterface): Promise<void> { |
| 491 | return new Promise(resolve => { |
| 492 | instance.init().then(() => { |
| 493 | this.adapter = instance; |
| 494 | resolve(); |
| 495 | }); |
| 496 | }); |
| 497 | } |
| 498 | |
| 499 | /** |
| 500 | * Set the metrics manager. |