public class TimeoutUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TimeoutUtils.Timeout |
static class |
TimeoutUtils.Type |
Modifier and Type | Field and Description |
---|---|
private static Integer |
APPLINK_TIMEOUT |
Constructor and Description |
---|
TimeoutUtils() |
Modifier and Type | Method and Description |
---|---|
static TimeoutUtils.Timeout |
forever()
Sets the timeout to 6 hours
|
static int |
getTimeout(Collection<?> items,
TimeoutUtils.Type type)
Returns a timeout in ms, depending on the type of data sent
0 = any type
1 = searching for issues
2 = searching for requirements in Confluence
3 = sending the queue from Confluence
4 = sending the queue from Jira
5 = communicate a rename to Jira
|
static int |
getTimeout(int count,
TimeoutUtils.Type type)
Get a timeout depending on the type of REST API called
|
static TimeoutUtils.Timeout |
start(long milliseconds) |
static TimeoutUtils.Timeout |
start(long count,
TimeUnit unit) |
private static final Integer APPLINK_TIMEOUT
public static int getTimeout(int count, TimeoutUtils.Type type)
public static int getTimeout(Collection<?> items, TimeoutUtils.Type type)
public static TimeoutUtils.Timeout start(long milliseconds)
public static TimeoutUtils.Timeout start(long count, TimeUnit unit)
public static TimeoutUtils.Timeout forever()
Copyright © 2022 Requirement Yogi. All rights reserved.