public class TimeoutsProvider extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROP_TIMEOUT_MULTIPLIER |
Modifier and Type | Method and Description |
---|---|
static TimeoutsProvider |
getInstance() |
int |
getTimeout(int nomimalValue) |
long |
getTimeout(long nomimalValue) |
int |
getTimeout(String systemPropertyName,
int defaultNominalValue)
Get timeout from a system property, with default value
|
public static final String PROP_TIMEOUT_MULTIPLIER
public static TimeoutsProvider getInstance()
public long getTimeout(long nomimalValue)
nomimalValue
- base number to be multiplied internally with the factorpublic int getTimeout(int nomimalValue)
nomimalValue
- base number to be multiplied internally with the factorpublic int getTimeout(String systemPropertyName, int defaultNominalValue)
systemPropertyName
- the name of the system prop from which to get the timeoutdefaultNominalValue
- default value in case the property does not existCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.