public enum HighPrioritySearchTimeout extends java.lang.Enum<HighPrioritySearchTimeout>
Enum Constant and Description |
---|
DISABLED |
FIVE_SECONDS |
TWO_AND_A_HALF_SECONDS |
Modifier and Type | Field and Description |
---|---|
static HighPrioritySearchTimeout |
DEFAULT
The timeout value set after a channel is assigned
|
static HighPrioritySearchTimeout |
MAX
The highest possible timeout value
|
Modifier and Type | Method and Description |
---|---|
int |
convertToMilliseconds()
Get the time value of this search timeout.
|
static HighPrioritySearchTimeout |
create(int milliseconds)
Will round millisecond value up to nearest timeout value in 2.5 second increments.
|
int |
getRawValue()
Returns the raw value of this HighPrioritySearchTimeout.
|
static HighPrioritySearchTimeout |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HighPrioritySearchTimeout[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HighPrioritySearchTimeout DISABLED
public static final HighPrioritySearchTimeout TWO_AND_A_HALF_SECONDS
public static final HighPrioritySearchTimeout FIVE_SECONDS
public static final HighPrioritySearchTimeout DEFAULT
public static final HighPrioritySearchTimeout MAX
public static HighPrioritySearchTimeout[] values()
for (HighPrioritySearchTimeout c : HighPrioritySearchTimeout.values()) System.out.println(c);
public static HighPrioritySearchTimeout valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getRawValue()
public static HighPrioritySearchTimeout create(int milliseconds)
milliseconds
- How long a search is required to run for, in millisecond units.public int convertToMilliseconds()
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.