aboutsummaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-20 11:55:22 +0300
committerValentin Popov <info@valentineus.link>2020-02-20 11:55:22 +0300
commitb7cb9f49b2f3fff7e909483f85ef449249e8cbb2 (patch)
tree04bef9d5f3fa896b828dfdcbfb0cc5874a951734 /dist
parentc372611b7ecbd9b91f900e7a10c46aebaf200caf (diff)
downloadwebos-service-types-b7cb9f49b2f3fff7e909483f85ef449249e8cbb2.tar.xz
webos-service-types-b7cb9f49b2f3fff7e909483f85ef449249e8cbb2.zip
Class "ActivityManager" base structure
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'dist')
-rw-r--r--dist/activity-manager.d.ts42
1 files changed, 42 insertions, 0 deletions
diff --git a/dist/activity-manager.d.ts b/dist/activity-manager.d.ts
new file mode 100644
index 0000000..75f2193
--- /dev/null
+++ b/dist/activity-manager.d.ts
@@ -0,0 +1,42 @@
+import { Service } from "./service";
+import { Subscription } from "./subscription";
+
+export declare class ActivityManager {
+ public constructor(service: Service, idleTimeout: number);
+
+ public readonly idleTimeout: number;
+
+ public readonly service: Service;
+
+ public exitOnTimeout: boolean;
+
+ public useDummyActivity: boolean;
+
+ private readonly _activities: { [id: string]: Subscription };
+
+ private _counter: number;
+
+ private _dummyActivityId: number;
+
+ private _idleTimer: NodeJS.Timeout | null;
+
+ public adopt(): any
+
+ public complete(): any;
+
+ public create(): any;
+
+ private _add(id: string, activity: Subscription): void;
+
+ private _createActual(): any;
+
+ private _createDummy(): any;
+
+ private _createInternal(): any;
+
+ private _remove(id: string): void;
+
+ private _startTimer(): void;
+
+ private _stopTimer(): void;
+}