Package net.sodacan.core
Interface ActorGroup
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
AbstractActorGroup
,DefaultActorGroup
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 Summary
Modifier and TypeMethodDescriptionvoid
addMessage
(Jug jug) Add a message to be processed depending on Modeint
A actorGroup has a unique id.void
-
Method Details
-
getActorGroupNumber
int getActorGroupNumber()A actorGroup has a unique id.- Returns:
- The unique id of the actorGroup
-
setHost
-
getScheduler
Scheduler getScheduler() -
addMessage
Add a message to be processed depending on Mode- Parameters:
jug
-
-