Package akka.cluster.sharding.internal
Class NoAdmissionOptimizer$
- java.lang.Object
-
- akka.cluster.sharding.internal.NoAdmissionOptimizer$
-
public class NoAdmissionOptimizer$ extends java.lang.Object
INTERNAL APIDisabled admission window proportion optimizer.
-
-
Field Summary
Fields Modifier and Type Field Description static NoAdmissionOptimizer$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description NoAdmissionOptimizer$()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static akka.cluster.sharding.internal.AdmissionOptimizer
apply(int initialLimit, akka.cluster.sharding.ClusterShardingSettings.CompositePassivationStrategy.AdmissionOptimizer optimizer)
double
calculateAdjustment()
Calculate an adjustment to the proportion of the admission window.void
recordActive()
An entity was accessed that is already active.void
recordPassive()
An entity was accessed that was passive (needed to be activated).void
updateLimit(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
-
recordActive
public void recordActive()
An entity was accessed that is already active.
-
recordPassive
public void recordPassive()
An entity was accessed that was passive (needed to be activated).
-
updateLimit
public void updateLimit(int newLimit)
The per-shard limit has been updated.- Parameters:
newLimit
- the new per-shard limit
-
calculateAdjustment
public 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
-
apply
public static akka.cluster.sharding.internal.AdmissionOptimizer apply(int initialLimit, akka.cluster.sharding.ClusterShardingSettings.CompositePassivationStrategy.AdmissionOptimizer optimizer)
-
-