exportabstractclassAbstractScheduler{protectedabstractschedulerIntervalMs:numberprivateinterval:NodeJS.Timerenable(){if(!this.schedulerIntervalMs)thrownewError('Interval is not correctly set.')this.interval=setInterval(()=>this.execute(),this.schedulerIntervalMs)}disable(){clearInterval(this.interval)}protectedabstractexecute()}