Package akka.cluster.sharding.internal
Class NoAdmissionOptimizer$
- java.lang.Object
- 
- akka.cluster.sharding.internal.NoAdmissionOptimizer$
 
- 
 public class NoAdmissionOptimizer$ extends java.lang.ObjectINTERNAL APIDisabled admission window proportion optimizer. 
- 
- 
Field SummaryFields Modifier and Type Field Description static NoAdmissionOptimizer$MODULE$Static reference to the singleton instance of this Scala object.
 - 
Constructor SummaryConstructors Constructor Description NoAdmissionOptimizer$()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static akka.cluster.sharding.internal.AdmissionOptimizerapply(int initialLimit, akka.cluster.sharding.ClusterShardingSettings.CompositePassivationStrategy.AdmissionOptimizer optimizer)doublecalculateAdjustment()Calculate an adjustment to the proportion of the admission window.voidrecordActive()An entity was accessed that is already active.voidrecordPassive()An entity was accessed that was passive (needed to be activated).voidupdateLimit(int newLimit)The per-shard limit has been updated.
 
- 
- 
- 
Field Detail- 
MODULE$public static final NoAdmissionOptimizer$ MODULE$ Static reference to the singleton instance of this Scala object.
 
- 
 - 
Method Detail- 
recordActivepublic void recordActive() An entity was accessed that is already active.
 - 
recordPassivepublic void recordPassive() An entity was accessed that was passive (needed to be activated).
 - 
updateLimitpublic void updateLimit(int newLimit) The per-shard limit has been updated.- Parameters:
- newLimit- the new per-shard limit
 
 - 
calculateAdjustmentpublic double calculateAdjustment() Calculate an adjustment to the proportion of the admission window. Can be positive (to grow the window) or negative (to shrink the window). Returns 0.0 if no adjustment should be made.- Returns:
- the adjustment to make to the admission window proportion
 
 - 
applypublic static akka.cluster.sharding.internal.AdmissionOptimizer apply(int initialLimit, akka.cluster.sharding.ClusterShardingSettings.CompositePassivationStrategy.AdmissionOptimizer optimizer)
 
- 
 
-