Skip to content

Commit 4aab4eb

Browse files
authored
2.x: test sync, fix retryWhen/redoWhen/publish(Function) (#4361)
* 2.x: test sync, fix retryWhen/redoWhen/publish(Function) * Fix spelling error, use common parameter validation at more places
1 parent 6291f59 commit 4aab4eb

23 files changed

+1797
-423
lines changed

src/main/java/io/reactivex/BackpressureOverflow.java

Lines changed: 0 additions & 109 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* Copyright 2016 Netflix, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package io.reactivex;
17+
18+
/**
19+
* Options to deal with buffer overflow when using onBackpressureBuffer.
20+
*/
21+
public enum BackpressureOverflowStrategy {
22+
/** Signal a MissingBackpressureException and terminate the sequence. */
23+
ERROR,
24+
/** Drop the oldest value from the buffer. */
25+
DROP_OLDEST,
26+
/** Drop the latest value from the buffer. */
27+
DROP_LATEST
28+
}

0 commit comments

Comments
 (0)