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 | // These options will be used library-wide. They're specified here so that
|
20 | // they can be changed easily in the future.
|
21 | exports.defaultOptions = {
|
22 | subscription: {
|
23 | // The maximum number of messages that may be queued for receiving,
|
24 | // with the default lease manager.
|
25 | maxOutstandingMessages: 1000,
|
26 | // The maximum amount of message data that may be queued for receiving,
|
27 | // in bytes, with the default lease manager.
|
28 | maxOutstandingBytes: 100 * 1024 * 1024,
|
29 | // The maximum number of minutes that a message's lease will ever
|
30 | // be extended.
|
31 | maxExtensionMinutes: 60,
|
32 | // The maximum number of subscription streams/threads that will ever
|
33 | // be opened.
|
34 | maxStreams: 5,
|
35 | },
|
36 | publish: {
|
37 | // The maximum number of messages we'll batch up for publish().
|
38 | maxOutstandingMessages: 100,
|
39 | // The maximum size of the total batched up messages for publish().
|
40 | maxOutstandingBytes: 1 * 1024 * 1024,
|
41 | // The maximum time we'll wait to send batched messages, in milliseconds.
|
42 | maxDelayMillis: 10,
|
43 | },
|
44 | };
|
45 | //# sourceMappingURL=default-options.js.map |
\ | No newline at end of file |