public class ActorUtils extends Object
Actor.| Modifier and Type | Method and Description |
|---|---|
static CompletableFuture<Void> |
nonBlockingShutDown(long gracePeriod,
TimeUnit timeUnit,
akka.actor.ActorRef... actors)
Shuts the given
Actor down in a non blocking fashion. |
static void |
stopActor(akka.actor.ActorRef actorRef) |
static void |
stopActor(AkkaActorGateway akkaActorGateway) |
public static CompletableFuture<Void> nonBlockingShutDown(long gracePeriod, TimeUnit timeUnit, akka.actor.ActorRef... actors)
Actor down in a non blocking fashion. The method first tries to
gracefully shut them down. If this is not successful, then the actors will be terminated by sending
a Kill message.gracePeriod - for the graceful shutdowntimeUnit - time unit of the grace periodactors - to shut downpublic static void stopActor(AkkaActorGateway akkaActorGateway)
public static void stopActor(akka.actor.ActorRef actorRef)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.