public class MapBasedTimeouts extends Object implements Timeouts
Timeouts implementation based on simple mappings between timeout types and values.
At the very least, the provided map is supposed to contain timeout value for the TimeoutType.DEFAULT
key. If it is not present, an exception will be raised from the constructor. This value will be used in place of
whatever other timeout type that does have corresponding value within the properties.
DEFAULT_INTERVAL| Constructor and Description |
|---|
MapBasedTimeouts(Map<TimeoutType,Long> timeouts) |
| Modifier and Type | Method and Description |
|---|---|
long |
timeoutFor(TimeoutType timeoutType)
Provide timeout (in milliseconds) for a given timeoutType.
|
public MapBasedTimeouts(Map<TimeoutType,Long> timeouts)
public long timeoutFor(TimeoutType timeoutType)
TimeoutstimeoutFor in interface TimeoutstimeoutType - type of the timeoutCopyright © 2015 Atlassian. All rights reserved.