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
|
|
@ -395,7 +395,7 @@ class SourceOrFlow {
|
|||
Flow<Message, Pong, NotUsed> flow =
|
||||
Flow.of(Message.class)
|
||||
.collect(
|
||||
new PFBuilder<Message, Pong>()
|
||||
PFBuilder.<Message, Pong>create()
|
||||
.match(Ping.class, p -> p.id != 0, p -> new Pong(p.id))
|
||||
.build());
|
||||
// #collect
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue