UNPKG

@voicenter-team/mysql-dynamic-cluster

Version:

Galera cluster with implementation of dynamic choose mysql server for queries, caching, hashing it and metrics

26 lines (25 loc) 530 B
/** * Created by Bohdan on Sep, 2021 */ /** * Simple timer what call callback some period of time */ export declare class Timer { private _timer; private readonly _callback; private _active; get active(): boolean; /** * @param callback callback what called when time is out */ constructor(callback: () => void); /** * Run timer * @param time time how much need to wait */ start(time: number): void; /** * Clear timer and stop it */ dispose(): void; }