Debian Codegraph @

src/main/java/io/reactivex/rxjava3/annotations/BackpressureKind.java

raw
1 /*
2 * Copyright (c) 2016-present, RxJava Contributors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
5 * compliance with the License. You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software distributed under the License is
10 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
11 * the License for the specific language governing permissions and limitations under the License.
12 */
13
14 package io.reactivex.rxjava3.annotations;
15
16 /**
17 * Enumeration for various kinds of backpressure support.
18 * @since 2.0
19 */
20 public enum BackpressureKind {
21 /**
22 * The backpressure-related requests pass through this operator without change.
23 */
24 PASS_THROUGH,
25 /**
26 * The operator fully supports backpressure and may coordinate downstream requests
27 * with upstream requests through batching, arbitration or by other means.
28 */
29 FULL,
30 /**
31 * The operator performs special backpressure management; see the associated javadoc.
32 */
33 SPECIAL,
34 /**
35 * The operator requests {@link Long#MAX_VALUE} from upstream but respects the backpressure
36 * of the downstream.
37 */
38 UNBOUNDED_IN,
39 /**
40 * The operator will emit a {@link io.reactivex.rxjava3.exceptions.MissingBackpressureException MissingBackpressureException}
41 * if the downstream didn't request enough or in time.
42 */
43 ERROR,
44 /**
45 * The operator ignores all kinds of backpressure and may overflow the downstream.
46 */
47 NONE
48 }