Typed sharding: Allow queying of local shard region (#25409)

* Typed sharding: Allow quering of local shard region

Partially addresses #24466 still need to query
all shard regions

* Update to new testkit
This commit is contained in:
Christopher Batey 2018-12-04 15:53:07 +00:00 committed by GitHub
parent 895cd70b86
commit b38b407c73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 174 additions and 36 deletions

View file

@ -50,7 +50,7 @@ object Replicator {
* Convenience for `ask`.
*/
def apply[A <: ReplicatedData](key: Key[A], consistency: ReadConsistency): ActorRef[GetResponse[A]] Get[A] =
(replyTo Get(key, consistency, replyTo, None))
replyTo Get(key, consistency, replyTo, None)
}
/**

View file

@ -8,11 +8,8 @@ import akka.actor.typed.*;
import akka.actor.typed.javadsl.Behaviors;
//#import
import akka.cluster.typed.ClusterSingleton;
import akka.cluster.typed.ClusterSingletonSettings;
import akka.cluster.typed.*;
import java.time.Duration;
//#import
public class SingletonCompileOnlyTest {