From b7cb9f49b2f3fff7e909483f85ef449249e8cbb2 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 20 Feb 2020 12:55:22 +0400 Subject: Class "ActivityManager" base structure Signed-off-by: Valentin Popov --- dist/activity-manager.d.ts | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 dist/activity-manager.d.ts (limited to 'dist') 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; +} -- cgit v1.2.3