feat: Add create method to PFBuilder. (#947)
This commit is contained in:
parent
cf70478201
commit
df302b8ee6
11 changed files with 25 additions and 18 deletions
|
|
@ -260,7 +260,9 @@ public class BidiFlowDocTest extends AbstractJavaTest {
|
|||
final Flow<Message, Message, NotUsed> pingpong =
|
||||
Flow.of(Message.class)
|
||||
.collect(
|
||||
new PFBuilder<Message, Message>().match(Ping.class, p -> new Pong(p.id)).build());
|
||||
PFBuilder.<Message, Message>create()
|
||||
.match(Ping.class, p -> new Pong(p.id))
|
||||
.build());
|
||||
final Flow<Message, Message, NotUsed> flow = stack.atop(stack.reversed()).join(pingpong);
|
||||
final CompletionStage<List<Message>> result =
|
||||
Source.from(Arrays.asList(0, 1, 2))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue