Aaronontheweb on dev
Added v1.4.16 placeholder for n… (compare)
ActorSelection
initially
akkatime{
sessions{
handshake-timeout = 4.0s #max time to complete the handshake timeout process
verify-timeout = 1.0s #max time to authentication an end-user locally on the server
verify-chat = on
}
server = "akka.tcp://akkatime@127.0.0.1:14445"
}
akka {
akkatime
section is custom
akkatime.server
property that the client reads from configuration in order to figure out how to contact the server
var actorSystem = ActorSystemRefs.AkkaTimeSystem = ActorSystem.Create("akkatime");
var serverAddress = ActorSystemRefs.ServerAddress = Address.Parse(actorSystem.Settings.Config.GetString("akkatime.server"));
var serverStatus =ActorSystemRefs.ServerConnectivityActor =
actorSystem.ActorOf(
Props.Create(() => new ServerConnectivityStatusActor((Address)serverAddress.Clone(), ServerConnectivityStatus.Disconnected)),
ActorPaths.ServerConnectivity.Name);
ActorSystem
serverAddress
gets passed to an actor that uses an ActorSelection
to contact another actor on the server
IActorRef
is going to be both more performant and flexible at run-time
ActorSelection
is ideal in situations where you don't have a reference to an actor yet but still need to contact it
akka.tcp://mysys@127.0.0.1:9110/user/myParent/*/myGrandChild
myParent
named myGrandChild
without knowing what the parent's name is