redis-smq
Version:
A high-performance, reliable, and scalable message queue for Node.js.
20 lines • 787 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FactoryAbstract = void 0;
const state_manager_js_1 = require("../state-manager.js");
const redis_smq_common_1 = require("redis-smq-common");
const component_registry_js_1 = require("../component-registry.js");
class FactoryAbstract {
static ensureInitialized() {
if (!state_manager_js_1.StateManager.isRunning()) {
throw new redis_smq_common_1.PanicError({
message: 'RedisSMQ is not initialized. Call RedisSMQ.initialize() first.',
});
}
}
static track(instance) {
return component_registry_js_1.ComponentRegistry.track(instance);
}
}
exports.FactoryAbstract = FactoryAbstract;
//# sourceMappingURL=factory-abstract.js.map