add ActorRef.noSender() for the Java API, see #3429
- Actor.noSender is not accessible from Java, but it was in 2.1 so don’t remove - replaced all “null” in doc tests with ActorRef.noSender()
This commit is contained in:
parent
6c96485b26
commit
a2a646af4e
24 changed files with 92 additions and 79 deletions
|
|
@ -9,6 +9,7 @@ import java.util.Collections;
|
|||
import scala.concurrent.duration.Deadline;
|
||||
import scala.concurrent.duration.FiniteDuration;
|
||||
import scala.util.Either;
|
||||
import akka.actor.ActorRef;
|
||||
import akka.actor.ActorSystem;
|
||||
import akka.io.AbstractPipePair;
|
||||
import akka.io.PipePair;
|
||||
|
|
@ -74,7 +75,8 @@ public class TickGenerator<Cmd, Evt> extends
|
|||
@Override
|
||||
public Iterable<Either<Evt, Cmd>> onManagementCommand(Object cmd) {
|
||||
if (cmd == trigger) {
|
||||
ctx.getContext().self().tell(new Tick(Deadline.now().time()), null);
|
||||
ctx.getContext().self().tell(new Tick(Deadline.now().time()),
|
||||
ActorRef.noSender());
|
||||
schedule();
|
||||
}
|
||||
return Collections.emptyList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue