Package akka.cluster.sharding.internal
Class NoActiveEntities$
- java.lang.Object
- 
- akka.cluster.sharding.internal.NoActiveEntities$
 
- 
 public class NoActiveEntities$ extends java.lang.ObjectINTERNAL APIDisabled ActiveEntities (for no window in composite passivation strategies). 
- 
- 
Field SummaryFields Modifier and Type Field Description static NoActiveEntities$MODULE$Static reference to the singleton instance of this Scala object.
 - 
Constructor SummaryConstructors Constructor Description NoActiveEntities$()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static akka.cluster.sharding.internal.ActiveEntitiesapply(ClusterShardingSettings.PassivationStrategy strategy, boolean idleEnabled, scala.Function0<Clock> clock)booleanisActive(java.lang.String id)Check whether the entity id is currently tracked as active.voidremove(java.lang.String id)An entity instance should be removed from active tracking.scala.collection.immutable.Seq<java.lang.String>removeIdle(scala.concurrent.duration.FiniteDuration timeout)Remove entity instances that have not been active for the given timeout.<any>select()Select the entity that would be passivated by the replacement policy, when active capacity has been reached.intsize()The current number of active entities being tracked.scala.collection.immutable.Seq<java.lang.String>update(java.lang.String id)An entity instance has been touched.scala.collection.immutable.Seq<java.lang.String>updateLimit(int newLimit)The per-shard active entity limit has been updated, which can trigger passivation.
 
- 
- 
- 
Field Detail- 
MODULE$public static final NoActiveEntities$ MODULE$ Static reference to the singleton instance of this Scala object.
 
- 
 - 
Method Detail- 
sizepublic int size() The current number of active entities being tracked.- Returns:
- size of active entities
 
 - 
isActivepublic boolean isActive(java.lang.String id) Check whether the entity id is currently tracked as active.- Parameters:
- id- the entity id to check
- Returns:
- whether the entity is active
 
 - 
updateLimitpublic scala.collection.immutable.Seq<java.lang.String> updateLimit(int newLimit) The per-shard active entity limit has been updated, which can trigger passivation.- Parameters:
- newLimit- the new per-shard active entity limit
- Returns:
- entities to passivate in the associated shard
 
 - 
updatepublic scala.collection.immutable.Seq<java.lang.String> update(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
 
 - 
selectpublic <any> select() Select the entity that would be passivated by the replacement policy, when active capacity has been reached.- Returns:
- entity that would be passivated
 
 - 
removepublic void remove(java.lang.String id) An entity instance should be removed from active tracking.- Parameters:
- id- entity id for the removed entity instance
 
 - 
removeIdlepublic scala.collection.immutable.Seq<java.lang.String> removeIdle(scala.concurrent.duration.FiniteDuration timeout) Remove entity instances that have not been active for the given timeout.- Parameters:
- timeout- the idle timeout for entities
- Returns:
- entities to passivate, if deemed inactive
 
 - 
applypublic static akka.cluster.sharding.internal.ActiveEntities apply(ClusterShardingSettings.PassivationStrategy strategy, boolean idleEnabled, scala.Function0<Clock> clock) 
 
- 
 
-