UNPKG

hamok

Version:

Lightweight Distributed Object Storage on RAFT consensus algorithm

21 lines 802 B
import { OngoingRequestsNotification } from './messagetypes/OngoingRequests'; export type ActiveOngoingRequest = { requestId: string; remotePeerId: string; storageId: string; }; export declare class OngoingRequestsNotifier { readonly timeoutInMs: number; private readonly _sender; private readonly _activeOngoingRequests; private _timer?; constructor(timeoutInMs: number, _sender: (notification: OngoingRequestsNotification) => void); get activeOngoingRequests(): ReadonlyMap<string, ActiveOngoingRequest>; has(requestId: string): boolean; add(activeOngoingRequest: ActiveOngoingRequest): void; remove(requestId: string): boolean; clear(): void; private _startTimer; private _stopTimer; } //# sourceMappingURL=OngoingRequestsNotifier.d.ts.map