Interface ActorGroup

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
AbstractActorGroup, DefaultActorGroup

public interface ActorGroup extends Closeable

An actor exists in a single permanent actorGroup. A actorGroup is responsible for scheduling work (processing inbound messages) for actors that are assigned to the actorGroup.

While any given actor is permanently tied to a single actorGroup, the actorGroup itself is portable so that it can be "moved" from one Host to another with minimal impact on the running application.

The location and state of a particular actorGroup is managed by the cluster coordinator.

A scheduler is attached to a actorGroup and this scheduler handles the message workload for the actorGroup.

  • Method Details

    • getActorGroupNumber

      int getActorGroupNumber()
      A actorGroup has a unique id.
      Returns:
      The unique id of the actorGroup
    • setHost

      void setHost(Host host)
    • getScheduler

      Scheduler getScheduler()
    • addMessage

      void addMessage(Jug jug)
      Add a message to be processed depending on Mode
      Parameters:
      jug -