public ActorRef actorOf ( Props props , String path ) { String dispatcherId = props . getDispatcher ( ) == null ? DEFAULT_DISPATCHER : props . getDispatcher ( ) ; AbsActorDispatcher mailboxesDispatcher ; synchronized ( dispatchers ) { if ( ! dispatchers . containsKey ( dispatcherId ) ) { throw new RuntimeException ( "Unknown dispatcherId '" + dispatcherId + "'" ) ; } mailboxesDispatcher = dispatchers . get ( dispatcherId ) ; } return mailboxesDispatcher . referenceActor ( path , props ) ; }
Creating or getting existing actor from actor props