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:
parent
895cd70b86
commit
b38b407c73
10 changed files with 174 additions and 36 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue