UNPKG

@dazejs/framework

Version:

Daze.js - A powerful web framework for Node.js

53 lines (52 loc) 1.61 kB
export declare class Scheduler { private expression; private _timezone?; private _singletonServer; corn(expression: string): this; everySecond(): this; everyTwoSeconds(): this; everyThreeSeconds(): this; everyFourSeconds(): this; everyFiveSeconds(): this; everyTenSeconds(): this; everyFifteenSeconds(): this; everyThirtySeconds(): this; everyMinute(): this; everyTwoMinutes(): this; everyThreeMinutes(): this; everyFourMinutes(): this; everyFiveMinutes(): this; everyTenMinutes(): this; everyFifteenMinutes(): this; everyThirtyMinutes(): this; hourly(): this; hourlyAt(offset: number | number[]): this; everyTwoHours(): this; everyThreeHours(): this; everyFourHours(): this; everySixHours(): this; daily(): this; dailyAt(time: string): this; weekdays(): this; weekends(): this; mondays(): this; tuesdays(): this; wednesdays(): this; thursdays(): this; fridays(): this; saturdays(): this; sundays(): this; weekly(): this; weeklyOn(dayOfWeek: number | string, time?: string): this; monthly(): this; monthlyOn(dayOfMonth: string | number, time?: string): this; quarterly(): this; yearly(): this; yearlyOn(month?: string | number, dayOfMonth?: string | number, time?: string): this; timezone(timezone: string): this; getTimezone(): string | undefined; getExpression(): string; runOnSingletonServer(): this; isRunOnSingletonServer(): boolean; protected spliceIntoPosition(position: number, value: string): this; }