Re: [akka-user] Newbie question about storing ActorRef in a member variable

2016-06-09 Thread Justin du coeur
Ah, sorry -- misremembered since I don't use that one... On Wed, Jun 8, 2016 at 2:12 AM, Derek Williams wrote: > One correction: Future.value is not blocking, it returns the current state > of the Future. Which means there is a good chance the Future will not be > complete and None will be retur

Re: [akka-user] Newbie question about storing ActorRef in a member variable

2016-06-09 Thread Akka Team
Hi Robert, On Wed, Jun 8, 2016 at 12:05 AM, kraythe wrote: > First of all, thanks for the reply! > > I am trying to do a fair bit of work to glue an actor system to a > non-actor system and that is the problem here. Sure, it would be nice if > the whole system was Akka. However, it isn't Akka

Re: [akka-user] Newbie question about storing ActorRef in a member variable

2016-06-08 Thread Derek Williams
One correction: Future.value is not blocking, it returns the current state of the Future. Which means there is a good chance the Future will not be complete and None will be returned even if the actor exists. On Tue, 7 Jun 2016, 20:12 Justin du coeur, wrote: > Actually, again, this is very *un*c

Re: [akka-user] Newbie question about storing ActorRef in a member variable

2016-06-07 Thread Justin du coeur
Cool -- yeah, I suspected something of the sort had to be the case. Good luck... On Tue, Jun 7, 2016 at 6:05 PM, kraythe wrote: > First of all, thanks for the reply! > > I am trying to do a fair bit of work to glue an actor system to a > non-actor system and that is the problem here. Sure, it w

Re: [akka-user] Newbie question about storing ActorRef in a member variable

2016-06-07 Thread kraythe
First of all, thanks for the reply! I am trying to do a fair bit of work to glue an actor system to a non-actor system and that is the problem here. Sure, it would be nice if the whole system was Akka. However, it isn't Akka at all and I am trying to wedge Akka into the tech stack and prove ROI

Re: [akka-user] Newbie question about storing ActorRef in a member variable

2016-06-07 Thread Justin du coeur
Actually, again, this is very *un*common code -- all those statics are awfully surprising. Question: how much are you gluing Actors onto very non-Actor code? That's the only way I can interpret what you're doing here, and it's a bit unusual in my experience -- Akka tends to be pretty pervasive, s

[akka-user] Newbie question about storing ActorRef in a member variable

2016-06-07 Thread kraythe
I am currently adding Akka to our existing system that currently does distributed programming with Executors in Hazelcast. Obviously he executor system is not scaling so I am currently working on how to convert it to an actor system. The temptation I have is to do the code below for my scoring