UNPKG

redis-smq

Version:

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

36 lines 902 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StateManager = void 0; const redis_smq_common_1 = require("redis-smq-common"); class StateManager { 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(); } } exports.StateManager = StateManager; StateManager.state = new redis_smq_common_1.PowerSwitch(); //# sourceMappingURL=state-manager.js.map