Search in sources :

Example 1 with ResourceActor

use of actor4j.core.actors.ResourceActor in project actor4j-core by relvaner.

the class ActorSystemImpl method internal_addCell.

protected UUID internal_addCell(ActorCell cell) {
    Actor actor = cell.actor;
    if (actor instanceof PseudoActor)
        pseudoCells.put(cell.id, cell);
    else {
        actor.setCell(cell);
        cells.put(cell.id, cell);
        if (actor instanceof ResourceActor)
            resourceCells.put(cell.id, false);
        if (executerService.isStarted()) {
            messageDispatcher.registerCell(cell);
            /* preStart */
            cell.preStart();
        }
    }
    return cell.id;
}
Also used : ResourceActor(actor4j.core.actors.ResourceActor) ResourceActor(actor4j.core.actors.ResourceActor) Actor(actor4j.core.actors.Actor) PseudoActor(actor4j.core.actors.PseudoActor) PseudoActor(actor4j.core.actors.PseudoActor)

Aggregations

Actor (actor4j.core.actors.Actor)1 PseudoActor (actor4j.core.actors.PseudoActor)1 ResourceActor (actor4j.core.actors.ResourceActor)1