1 | ;
|
2 | /*!
|
3 | * Copyright 2020 Google LLC
|
4 | *
|
5 | * Licensed under the Apache License, Version 2.0 (the "License");
|
6 | * you may not use this file except in compliance with the License.
|
7 | * You may obtain a copy of the License at
|
8 | *
|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
10 | *
|
11 | * Unless required by applicable law or agreed to in writing, software
|
12 | * distributed under the License is distributed on an "AS IS" BASIS,
|
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 | * See the License for the specific language governing permissions and
|
15 | * limitations under the License.
|
16 | */
|
17 | Object.defineProperty(exports, "__esModule", { value: true });
|
18 | exports.defaultOptions = void 0;
|
19 | const temporal_1 = require("./temporal");
|
20 | // These options will be used library-wide. They're specified here so that
|
21 | // they can be changed easily in the future.
|
22 | exports.defaultOptions = {
|
23 | subscription: {
|
24 | // The maximum number of messages that may be queued for receiving,
|
25 | // with the default lease manager.
|
26 | maxOutstandingMessages: 1000,
|
27 | // The maximum amount of message data that may be queued for receiving,
|
28 | // in bytes, with the default lease manager.
|
29 | maxOutstandingBytes: 100 * 1024 * 1024,
|
30 | // The minimum length of time a message's lease will be extended by.
|
31 | minAckDeadline: undefined,
|
32 | // The maximum length of time a message's lease will be extended by.
|
33 | maxAckDeadline: temporal_1.Duration.from({ minutes: 10 }),
|
34 | // The maximum number of minutes that a message's lease will ever
|
35 | // be extended.
|
36 | maxExtensionMinutes: 60,
|
37 | // The maximum number of subscription streams/threads that will ever
|
38 | // be opened.
|
39 | maxStreams: 5,
|
40 | // The starting number of seconds that ack deadlines will be extended.
|
41 | ackDeadline: 10,
|
42 | },
|
43 | publish: {
|
44 | // The maximum number of messages we'll batch up for publish().
|
45 | maxOutstandingMessages: 100,
|
46 | // The maximum size of the total batched up messages for publish().
|
47 | maxOutstandingBytes: 1 * 1024 * 1024,
|
48 | // The maximum time we'll wait to send batched messages, in milliseconds.
|
49 | maxDelayMillis: 10,
|
50 | },
|
51 | };
|
52 | //# sourceMappingURL=default-options.js.map |
\ | No newline at end of file |