Package com.github.kagkarlsson.scheduler
Class PollingStrategyConfig
java.lang.Object
com.github.kagkarlsson.scheduler.PollingStrategyConfig
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PollingStrategyConfigstatic final PollingStrategyConfigfinal doublefinal double -
Constructor Summary
ConstructorsConstructorDescriptionPollingStrategyConfig(PollingStrategyConfig.Type type, double lowerLimitFractionOfThreads, double upperLimitFractionOfThreads) -
Method Summary
Modifier and TypeMethodDescriptiondescribe()intgetLowerLimit(int threadpoolSize) intgetUpperLimit(int threadpoolSize)
-
Field Details
-
DEFAULT_FETCH
-
DEFAULT_SELECT_FOR_UPDATE
-
type
-
lowerLimitFractionOfThreads
public final double lowerLimitFractionOfThreads -
upperLimitFractionOfThreads
public final double upperLimitFractionOfThreads
-
-
Constructor Details
-
PollingStrategyConfig
public PollingStrategyConfig(PollingStrategyConfig.Type type, double lowerLimitFractionOfThreads, double upperLimitFractionOfThreads)
-
-
Method Details
-
getUpperLimit
public int getUpperLimit(int threadpoolSize) -
getLowerLimit
public int getLowerLimit(int threadpoolSize) -
describe
-