Hello I'll use distributed data with akka-typed and java. I wanted to upgrade to Akka 2.5 and stumbled over following problem:
Before I had Adapters like: ActorRef<Replicator.GetResponse<LWWRegister<Cache>>> readResponseAdapter = ctx.spawnAdapter(InternalGetResponse::new); ActorRef<Replicator.UpdateResponse<LWWRegister<Cache>>> updateResponseAdapter = ctx.spawnAdapter(msg -> new InternalUpdateResponse ()); and using them like: replicator.tell(new Replicator.Get<>(cacheKey, Replicator.readLocal(), readResponseAdapter, Optional.of(msg))); replicator.tell(new Replicator.Update<>(cacheKey, LWWRegister.create(cluster , new Cache()), Replicator.writeLocal(), updateResponseAdapter, Optional.empty(), t -> t. withValue(cluster, cache))); now they look like ActorRef<Replicator.GetResponse> readResponseAdapter = ctx.messageAdapter(Replicator.GetResponse.class, InternalGetResponse::new); ActorRef<Replicator.UpdateResponse> updateResponseAdapter = ctx.messageAdapter(Replicator.UpdateResponse.class, msg -> new InternalUpdateResponse()); Using the new ones give me problems now: replicator.tell(new Replicator.Get(cacheKey, Replicator.readLocal(), readResponseAdapter, Optional.of(msg))); replicator.tell(new Replicator.Update(cacheKey, LWWRegister.create(cluster, new Cache()), Replicator.writeLocal(), updateResponseAdapter, Optional.empty(), t -> t.withValue(cluster, cache))); //doesn't compile can anyone help me with this? -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
