add eagerCancel to Partition and Balance stage (#22339)

* add eagerCancel to Partition and Balance stage

* fix mima error

* rebase master and add unit test

* add java support and since to deprecated
This commit is contained in:
Hawstein 2018-04-10 00:46:39 +08:00 committed by Konrad `ktoso` Malawski
parent 332aa58540
commit ecdaf0e530
4 changed files with 91 additions and 16 deletions

View file

@ -1917,6 +1917,8 @@ Emit each incoming element each of `n` outputs.
**completes** when upstream completes
**cancels** depends on the `eagerCancel` flag. If it is true, when any downstream cancels, if false, when all downstreams cancel.
---------------------------------------------------------------
### balance
@ -1929,6 +1931,8 @@ Fan-out the stream to several streams. Each upstream element is emitted to the f
**completes** when upstream completes
**cancels** depends on the `eagerCancel` flag. If it is true, when any downstream cancels, if false, when all downstreams cancel.
---------------------------------------------------------------
### partition
@ -1942,6 +1946,8 @@ partitioner function applied to the element.
**completes** when upstream completes and no output is pending
**cancels** depends on the `eagerCancel` flag. If it is true, when any downstream cancels, if false, when all downstreams cancel.
---------------------------------------------------------------
<br/>