Package com.github.kagkarlsson.scheduler
Class PollingStrategyConfig
- java.lang.Object
-
- com.github.kagkarlsson.scheduler.PollingStrategyConfig
-
public class PollingStrategyConfig extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PollingStrategyConfig.Type
-
Field Summary
Fields Modifier and Type Field Description static PollingStrategyConfig
DEFAULT_FETCH
static PollingStrategyConfig
DEFAULT_SELECT_FOR_UPDATE
double
lowerLimitFractionOfThreads
PollingStrategyConfig.Type
type
double
upperLimitFractionOfThreads
-
Constructor Summary
Constructors Constructor Description PollingStrategyConfig(PollingStrategyConfig.Type type, double lowerLimitFractionOfThreads, double upperLimitFractionOfThreads)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
describe()
int
getLowerLimit(int threadpoolSize)
int
getUpperLimit(int threadpoolSize)
-
-
-
Field Detail
-
DEFAULT_FETCH
public static final PollingStrategyConfig DEFAULT_FETCH
-
DEFAULT_SELECT_FOR_UPDATE
public static final PollingStrategyConfig DEFAULT_SELECT_FOR_UPDATE
-
type
public final PollingStrategyConfig.Type type
-
lowerLimitFractionOfThreads
public final double lowerLimitFractionOfThreads
-
upperLimitFractionOfThreads
public final double upperLimitFractionOfThreads
-
-
Constructor Detail
-
PollingStrategyConfig
public PollingStrategyConfig(PollingStrategyConfig.Type type, double lowerLimitFractionOfThreads, double upperLimitFractionOfThreads)
-
-
Method Detail
-
getUpperLimit
public int getUpperLimit(int threadpoolSize)
-
getLowerLimit
public int getLowerLimit(int threadpoolSize)
-
describe
public String describe()
-
-