Materializer settings as attributes (#27499)
* Replace MaterializerSettings with Attributes #25559 * Field access to settings deprecated to make stages use attributes instead * Internal stages updated to use attributes * Docs on ActorMaterializerSettings updated to recommend away from using it * Verify all stages stopped after each testcase in FlowGroupBySpec * Subscription timeout attributes merged into one
This commit is contained in:
parent
b9a879d722
commit
aca63ea198
132 changed files with 1596 additions and 1116 deletions
|
|
@ -663,10 +663,6 @@ public class IntegrationDocTest extends AbstractJavaTest {
|
|||
final Executor blockingEc = system.dispatchers().lookup("blocking-dispatcher");
|
||||
final SometimesSlowService service = new SometimesSlowService(blockingEc);
|
||||
|
||||
final ActorMaterializer mat =
|
||||
ActorMaterializer.create(
|
||||
ActorMaterializerSettings.create(system).withInputBuffer(4, 4), system);
|
||||
|
||||
Source.from(Arrays.asList("a", "B", "C", "D", "e", "F", "g", "H", "i", "J"))
|
||||
.map(
|
||||
elem -> {
|
||||
|
|
@ -674,7 +670,9 @@ public class IntegrationDocTest extends AbstractJavaTest {
|
|||
return elem;
|
||||
})
|
||||
.mapAsync(4, service::convert)
|
||||
.runForeach(elem -> System.out.println("after: " + elem), system);
|
||||
.to(Sink.foreach(elem -> System.out.println("after: " + elem)))
|
||||
.withAttributes(Attributes.inputBuffer(4, 4))
|
||||
.run(system);
|
||||
// #sometimes-slow-mapAsync
|
||||
|
||||
probe.expectMsg("after: A");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue