|
3 | 3 | * Licensed under the MIT License. |
4 | 4 | */ |
5 | 5 |
|
6 | | -/** |
7 | | - * Common controls for States objects. |
8 | | - * |
9 | | - * @sealed |
10 | | - * @beta |
11 | | - */ |
12 | | -export interface BroadcastControls { |
13 | | - /** |
14 | | - * Maximum time in milliseconds that a local value update is allowed |
15 | | - * to remain pending before it must be broadcast. |
16 | | - * |
17 | | - * @remarks |
18 | | - * There is no guarantee of broadcast within time allowed |
19 | | - * as other conditions such as disconnect or service throttling may |
20 | | - * cause a delay. |
21 | | - * |
22 | | - * Setting to `undefined` will restore to a system default. |
23 | | - */ |
24 | | - allowableUpdateLatencyMs: number | undefined; |
25 | | - |
26 | | - /** |
27 | | - * Target time in milliseconds between oldest changed local state |
28 | | - * has been broadcast and forced rebroadcast of all local values. |
29 | | - * A value of less than 10 disables forced refresh. |
30 | | - * |
31 | | - * @privateRemarks |
32 | | - * Any time less than 10 milliseconds is likely to generate too |
33 | | - * many signals. Ideally this feature becomes obsolete as |
34 | | - * we understand the system better and account for holes. |
35 | | - */ |
36 | | - // forcedRefreshIntervalMs is removed until it is supported. |
37 | | - // forcedRefreshIntervalMs: number | undefined; |
38 | | -} |
39 | | - |
40 | | -/** |
41 | | - * Value set to configure {@link BroadcastControls}. |
42 | | - * |
43 | | - * @beta |
44 | | - */ |
45 | | -export interface BroadcastControlSettings { |
46 | | - /** |
47 | | - * {@inheritdoc BroadcastControls.allowableUpdateLatencyMs} |
48 | | - * |
49 | | - * @defaultValue 60 [milliseconds] |
50 | | - */ |
51 | | - readonly allowableUpdateLatencyMs?: number; |
52 | | - |
53 | | - /** |
54 | | - * {@inheritdoc BroadcastControls.forcedRefreshIntervalMs} |
55 | | - * |
56 | | - * @defaultValue 0 (disabled) |
57 | | - */ |
58 | | - // forcedRefreshIntervalMs is removed until it is supported. |
59 | | - // readonly forcedRefreshIntervalMs?: number; |
60 | | -} |
| 6 | +import type { BroadcastControls, BroadcastControlSettings } from "./broadcastControlsTypes.js"; |
61 | 7 |
|
62 | 8 | class ForcedRefreshControl |
63 | 9 | implements |
|
0 commit comments