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:
parent
4b012cc306
commit
b89a7e5df5
17 changed files with 77 additions and 34 deletions
|
|
@ -45,7 +45,7 @@ public class DeviceGroupQuery extends AbstractActor {
|
|||
}
|
||||
|
||||
public static Props props(Map<ActorRef, String> actorToDeviceId, long requestId, ActorRef requester, FiniteDuration timeout) {
|
||||
return Props.create(DeviceGroupQuery.class, actorToDeviceId, requestId, requester, timeout);
|
||||
return Props.create(DeviceGroupQuery.class, () -> new DeviceGroupQuery(actorToDeviceId, requestId, requester, timeout));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue