UNPKG

node-beanstalk

Version:

The most comprehensive beanstalk client for nodejs

29 lines 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DEFAULT_POOL_OPTIONS = exports.DEFAULT_CLIENT_OPTIONS = exports.JOB_ID_MIN = exports.TIMEOUT_MIN = exports.TTR_MAX = exports.TTR_MIN = exports.DELAY_MAX = exports.DELAY_MIN = exports.PRIORITY_MAX = exports.PRIORITY_MIN = exports.CRLF_BUFF = exports.CRLF = void 0; var JsonSerializer_1 = require("./serializer/JsonSerializer"); exports.CRLF = '\r\n'; exports.CRLF_BUFF = Buffer.from(exports.CRLF); exports.PRIORITY_MIN = 0; exports.PRIORITY_MAX = Math.pow(2, 32) - 1; exports.DELAY_MIN = 0; exports.DELAY_MAX = Math.pow(2, 32) - 1; exports.TTR_MIN = 0; exports.TTR_MAX = Math.pow(2, 32) - 1; exports.TIMEOUT_MIN = 0; exports.JOB_ID_MIN = 1; exports.DEFAULT_CLIENT_OPTIONS = { host: '127.0.0.1', port: 11300, defaultPriority: 1024, defaultDelay: 0, defaultTTR: 30, serializer: new JsonSerializer_1.JsonSerializer(), maxPayloadSize: 65536, dataReadTimeoutMs: 1000, }; exports.DEFAULT_POOL_OPTIONS = { clientOptions: {}, capacity: 10, }; //# sourceMappingURL=const.js.map