@MakkaPakka wrote:
I’m using a Google Guava LoadingCache to provide child actors. Is that a bad idea? Will some kind of nasty threading issue bite me in the backside if I continue with this strategy?
Here’s the
load
method from myCacheLoader
implementation:@Override public ActorRef<Foundation.Command> load(AccountId accountId) { ActorRef<Foundation.Command> actor = context.spawnAnonymous( Foundation.create(host, accountId, permissionFinder)); context.watchWith(actor, RemoveFoundationActor.INSTANCE); return actor; }
Posts: 1
Participants: 1