public enum LowPrioritySearchTimeout extends java.lang.Enum<LowPrioritySearchTimeout>
Enum Constant and Description |
---|
DISABLED |
FIFTEEN_SECONDS |
FIVE_SECONDS |
SEVEN_AND_A_HALF_SECONDS |
SEVENTEEN_AND_A_HALF_SECONDS |
TEN_SECONDS |
TWELVE_AND_A_HALF_SECONDS |
TWENTY_FIVE_SECONDS |
TWENTY_SECONDS |
TWENTY_TWO_AND_A_HALF_SECONDS |
TWO_AND_A_HALF_SECONDS |
Modifier and Type | Field and Description |
---|---|
static LowPrioritySearchTimeout |
DEFAULT
The timeout value set after a channel is assigned
|
static LowPrioritySearchTimeout |
MAX
The highest possible timeout value
|
Modifier and Type | Method and Description |
---|---|
int |
convertToMilliseconds()
Get the time value of this search timeout.
|
static LowPrioritySearchTimeout |
create(int milliseconds)
Will round millisecond value up to nearest timeout value in 2.5 second increments.
|
int |
getRawValue()
Gets the raw value of this LowPrioritySearchTimeout.
|
static LowPrioritySearchTimeout |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LowPrioritySearchTimeout[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LowPrioritySearchTimeout DISABLED
public static final LowPrioritySearchTimeout TWO_AND_A_HALF_SECONDS
public static final LowPrioritySearchTimeout FIVE_SECONDS
public static final LowPrioritySearchTimeout SEVEN_AND_A_HALF_SECONDS
public static final LowPrioritySearchTimeout TEN_SECONDS
public static final LowPrioritySearchTimeout TWELVE_AND_A_HALF_SECONDS
public static final LowPrioritySearchTimeout FIFTEEN_SECONDS
public static final LowPrioritySearchTimeout SEVENTEEN_AND_A_HALF_SECONDS
public static final LowPrioritySearchTimeout TWENTY_SECONDS
public static final LowPrioritySearchTimeout TWENTY_TWO_AND_A_HALF_SECONDS
public static final LowPrioritySearchTimeout TWENTY_FIVE_SECONDS
public static final LowPrioritySearchTimeout DEFAULT
public static final LowPrioritySearchTimeout MAX
public static LowPrioritySearchTimeout[] values()
for (LowPrioritySearchTimeout c : LowPrioritySearchTimeout.values()) System.out.println(c);
public static LowPrioritySearchTimeout 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 LowPrioritySearchTimeout 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.