Package akka.cluster.sharding
Class ShardRegion$
- java.lang.Object
-
- akka.cluster.sharding.ShardRegion$
-
public class ShardRegion$ extends java.lang.Object
- See Also:
ClusterSharding extension
-
-
Field Summary
Fields Modifier and Type Field Description static ShardRegion$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description ShardRegion$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShardRegion.GetCurrentRegions$
getCurrentRegionsInstance()
Java API:ShardRegion.GetShardRegionStats$
getRegionStatsInstance()
Java API:ShardRegion.GetShardRegionState$
getShardRegionStateInstance()
Java API:ShardRegion.GracefulShutdown$
gracefulShutdownInstance()
Java API: Send this message to theShardRegion
actor to handoff all shards that are hosted by theShardRegion
and then theShardRegion
actor will be stopped.Props
handOffStopperProps(java.lang.String shard, ActorRef replyTo, scala.collection.immutable.Set<ActorRef> entities, java.lang.Object stopMessage, scala.concurrent.duration.FiniteDuration handoffTimeout)
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 theProps
of theShardRegion
actor.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 theProps
of theShardRegion
actor when using it in proxy only mode.
-
-
-
Field Detail
-
MODULE$
public static final ShardRegion$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
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 theProps
of theShardRegion
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 theProps
of theShardRegion
actor when using it in proxy only mode.
-
gracefulShutdownInstance
public ShardRegion.GracefulShutdown$ gracefulShutdownInstance()
Java API: Send this message to theShardRegion
actor to handoff all shards that are hosted by theShardRegion
and then theShardRegion
actor will be stopped. You canwatch
it to know when it is completed.
-
getCurrentRegionsInstance
public ShardRegion.GetCurrentRegions$ getCurrentRegionsInstance()
Java API:
-
getRegionStatsInstance
public ShardRegion.GetShardRegionStats$ getRegionStatsInstance()
Java API:
-
getShardRegionStateInstance
public ShardRegion.GetShardRegionState$ getShardRegionStateInstance()
Java API:
-
-