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;
}
Aggregations