Refatored createActor,
separate unit tests cleanup according to viktor's suggestions
This commit is contained in:
parent
5f073e2ab5
commit
a605ac4eea
4 changed files with 175 additions and 122 deletions
|
|
@ -820,16 +820,23 @@ class RemoteServerHandler(
|
|||
|
||||
val actorRefOrNull = findActorByIdOrUuid(id, uuidFrom(uuid.getHigh,uuid.getLow).toString)
|
||||
|
||||
if (actorRefOrNull ne null)
|
||||
if (actorRefOrNull ne null) {
|
||||
println("Giving actor by id or uuid ")
|
||||
actorRefOrNull
|
||||
}
|
||||
else
|
||||
{
|
||||
// the actor has not been registered globally. See if we have it in the session
|
||||
val sessionActorRefOrNull = createSessionActor(actorInfo, channel);
|
||||
if (sessionActorRefOrNull ne null)
|
||||
if (sessionActorRefOrNull ne null) {
|
||||
println("giving session actor")
|
||||
sessionActorRefOrNull
|
||||
}
|
||||
else // maybe it is a client managed actor
|
||||
createClientManagedActor(actorInfo)
|
||||
{
|
||||
println("Client managed actor")
|
||||
createClientManagedActor(actorInfo)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue