Change tests to use new Source.queue api, #29801 (#30070)

This commit is contained in:
Alex 2021-05-27 10:53:18 +04:00 committed by GitHub
parent 48e4f11dfd
commit 3ae85e8cd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 27 additions and 27 deletions

View file

@ -749,8 +749,8 @@ public class IntegrationDocTest extends AbstractJavaTest {
int bufferSize = 10;
int elementsToProcess = 5;
SourceQueueWithComplete<Integer> sourceQueue =
Source.<Integer>queue(bufferSize, OverflowStrategy.backpressure())
BoundedSourceQueue<Integer> sourceQueue =
Source.<Integer>queue(bufferSize)
.throttle(elementsToProcess, Duration.ofSeconds(3))
.map(x -> x * x)
.to(Sink.foreach(x -> System.out.println("got: " + x)))