UNPKG

redis-smq

Version:

A high-performance, reliable, and scalable message queue for Node.js.

32 lines 735 B
import { PowerSwitch } from 'redis-smq-common'; export class StateManager { static state = new PowerSwitch(); static isUp() { return this.state.isUp(); } static isGoingUp() { return this.state.isGoingUp(); } static isGoingDown() { return this.state.isGoingDown(); } static isRunning() { return this.state.isRunning(); } static isDown() { return this.state.isDown(); } static goingUp() { this.state.goingUp(); } static goingDown() { this.state.goingDown(); } static commit() { this.state.commit(); } static rollback() { this.state.rollback(); } } //# sourceMappingURL=state-manager.js.map