Class TimeoutsProvider
- java.lang.Object
-
- org.apache.sling.testing.clients.util.TimeoutsProvider
-
@Deprecated public class TimeoutsProvider extends Object
Deprecated.duplicate ofTimeoutsProvider. This will be removed in the future, so switch to the other one insteadReturn timeout values that can be multiplied by a configurable factor. Useful to cope with slower integration testing systems: use timeout constants in your code that work for usual development systems, and set a multiplier when running on a slower system.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROP_TIMEOUT_MULTIPLIERDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TimeoutsProvidergetInstance()Deprecated.intgetTimeout(int nomimalValue)Deprecated.longgetTimeout(long nomimalValue)Deprecated.intgetTimeout(String systemPropertyName, int defaultNominalValue)Deprecated.Get timeout from a system property, with default value
-
-
-
Field Detail
-
PROP_TIMEOUT_MULTIPLIER
public static final String PROP_TIMEOUT_MULTIPLIER
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static TimeoutsProvider getInstance()
Deprecated.
-
getTimeout
public long getTimeout(long nomimalValue)
Deprecated.
-
getTimeout
public int getTimeout(int nomimalValue)
Deprecated.
-
getTimeout
public int getTimeout(String systemPropertyName, int defaultNominalValue)
Deprecated.Get timeout from a system property, with default value- Parameters:
systemPropertyName- Name of the system property that holds the timeout multiplierdefaultNominalValue- The default timeout multiplier- Returns:
- the total timeout value
-
-