Use Props factory methods in getting started tutorial (#25713)

* Use Props factory methods in getting started tutorial

* deprecate Props.create without actorClass parameter, #25718
This commit is contained in:
Patrik Nordwall 2018-10-15 18:12:41 +02:00 committed by Christopher Batey
parent 4b012cc306
commit b89a7e5df5
17 changed files with 77 additions and 34 deletions

View file

@ -72,7 +72,7 @@ class MyEventsByTagJavaPublisher extends AbstractActorPublisher<EventEnvelope> {
public static Props props(Connection conn, String tag, Long offset,
Duration refreshInterval) {
return Props.create(() ->
return Props.create(MyEventsByTagJavaPublisher.class, () ->
new MyEventsByTagJavaPublisher(conn, tag, offset, refreshInterval));
}