Package akka.cluster.sharding.internal
Class DisabledEntityPassivationStrategy$
- java.lang.Object
- 
- akka.cluster.sharding.internal.DisabledEntityPassivationStrategy$
 
- 
 public class DisabledEntityPassivationStrategy$ extends java.lang.ObjectINTERNAL API: No-op passivation strategy for when automatic passivation is disabled.
- 
- 
Field SummaryFields Modifier and Type Field Description static DisabledEntityPassivationStrategy$MODULE$Static reference to the singleton instance of this Scala object.
 - 
Constructor SummaryConstructors Constructor Description DisabledEntityPassivationStrategy$()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static akka.cluster.sharding.internal.EntityPassivationStrategyapply(ClusterShardingSettings settings, scala.Function0<Clock> clock)voidentityTerminated(java.lang.String id)An entity instance has been terminated and should be removed from active tracking.scala.collection.immutable.Seq<java.lang.String>entityTouched(java.lang.String id)An entity instance has been touched.scala.collection.immutable.Seq<java.lang.String>intervalPassed()Called each time thescheduledIntervalhas passed, if defined.scala.collection.immutable.Seq<java.lang.String>limitUpdated(int newLimit)The per-region active entity limit has been updated, which can trigger passivation.scala.Option<scala.concurrent.duration.FiniteDuration>scheduledInterval()An optional interval for time-based passivation strategies.scala.collection.immutable.Seq<java.lang.String>shardsUpdated(int activeShards)Active shards in this region have been updated, which can trigger passivation.
 
- 
- 
- 
Field Detail- 
MODULE$public static final DisabledEntityPassivationStrategy$ MODULE$ Static reference to the singleton instance of this Scala object.
 
- 
 - 
Method Detail- 
limitUpdatedpublic scala.collection.immutable.Seq<java.lang.String> limitUpdated(int newLimit) The per-region active entity limit has been updated, which can trigger passivation.- Parameters:
- newLimit- the new per-region active entity limit
- Returns:
- entities to passivate in the associated shard
 
 - 
shardsUpdatedpublic scala.collection.immutable.Seq<java.lang.String> shardsUpdated(int activeShards) Active shards in this region have been updated, which can trigger passivation.- Parameters:
- activeShards- updated number of active shards
- Returns:
- entities to passivate in the associated shard
 
 - 
entityTouchedpublic scala.collection.immutable.Seq<java.lang.String> entityTouched(java.lang.String id) An entity instance has been touched. Recorded before message delivery.- Parameters:
- id- entity id for the touched entity instance
- Returns:
- entities to passivate, when active capacity has been reached
 
 - 
entityTerminatedpublic void entityTerminated(java.lang.String id) An entity instance has been terminated and should be removed from active tracking.- Parameters:
- id- entity id for the terminated entity instance
 
 - 
scheduledIntervalpublic scala.Option<scala.concurrent.duration.FiniteDuration> scheduledInterval() An optional interval for time-based passivation strategies.- Returns:
- the scheduled interval to call the intervalPassedmethod
 
 - 
intervalPassedpublic scala.collection.immutable.Seq<java.lang.String> intervalPassed() Called each time thescheduledIntervalhas passed, if defined.- Returns:
- entities to passivate, if deemed inactive
 
 - 
applypublic static akka.cluster.sharding.internal.EntityPassivationStrategy apply(ClusterShardingSettings settings, scala.Function0<Clock> clock) 
 
- 
 
-