Class ShardRegion$

    • Field Detail

      • MODULE$

        public static final ShardRegion$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • ShardRegion$

        public ShardRegion$()
    • Method Detail

      • props

        public Props props​(java.lang.String typeName,
                           scala.Function1<java.lang.String,​Props> entityProps,
                           ClusterShardingSettings settings,
                           java.lang.String coordinatorPath,
                           scala.PartialFunction<java.lang.Object,​scala.Tuple2<java.lang.String,​java.lang.Object>> extractEntityId,
                           scala.Function1<java.lang.Object,​java.lang.String> extractShardId,
                           java.lang.Object handOffStopMessage,
                           ActorRef replicator,
                           int majorityMinCap)
        INTERNAL API Factory method for the Props of the ShardRegion actor.
      • proxyProps

        public Props proxyProps​(java.lang.String typeName,
                                scala.Option<java.lang.String> dataCenter,
                                ClusterShardingSettings settings,
                                java.lang.String coordinatorPath,
                                scala.PartialFunction<java.lang.Object,​scala.Tuple2<java.lang.String,​java.lang.Object>> extractEntityId,
                                scala.Function1<java.lang.Object,​java.lang.String> extractShardId,
                                ActorRef replicator,
                                int majorityMinCap)
        INTERNAL API Factory method for the Props of the ShardRegion actor when using it in proxy only mode.
      • gracefulShutdownInstance

        public ShardRegion.GracefulShutdown$ gracefulShutdownInstance()
        Java API: Send this message to the ShardRegion actor to handoff all shards that are hosted by the ShardRegion and then the ShardRegion actor will be stopped. You can watch it to know when it is completed.
      • handOffStopperProps

        public Props handOffStopperProps​(java.lang.String shard,
                                         ActorRef replyTo,
                                         scala.collection.immutable.Set<ActorRef> entities,
                                         java.lang.Object stopMessage,
                                         scala.concurrent.duration.FiniteDuration handoffTimeout)