Package

org.squbs

lifecycle

Permalink

package lifecycle

Visibility
  1. Public
  2. All

Type Members

  1. abstract class ActorWithGracefulStopHelper extends AbstractActor with GracefulStopHelper

    Permalink

    Java API for creating actors with GracefulStopHelper.

  2. trait ExtensionLifecycle extends AnyRef

    Permalink
  3. trait GracefulStopHelper extends GracefulStopSupport with ActorLogging

    Permalink

    The trait provides some helper methods to support graceful stop of an actor in Squbs framework

    The trait provides some helper methods to support graceful stop of an actor in Squbs framework

    Once you mix this trait in your actor, you can override stopTimeout to indicate how much time this actor may need to stop it self.

    When the actor gets created, it will send the stopTimeout to its parent. You can have the logic in the parent actor to decide to spend how much time to stop its children

    If you want your actor to stop gracefully, you should put your stop logic in the receive method responding to the GracefulStop message

Value Members

  1. object ExtensionLifecycle

    Permalink
  2. object GracefulStop extends Product with Serializable

    Permalink

Ungrouped