Enum Class IRequester.ResponseType
- All Implemented Interfaces:
Serializable,Comparable<IRequester.ResponseType>,Constable
- Enclosing interface:
IRequester<T extends IdBean>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOne response is required, after that comes in, return.Multiple responses are required, wait for the response timeout and collate all responses. -
Method Summary
Modifier and TypeMethodDescriptionstatic IRequester.ResponseTypeReturns the enum constant of this class with the specified name.static IRequester.ResponseType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ONE
One response is required, after that comes in, return. If the timeout is reached throw an exception.This is more efficient because the timeout is not waited for, it can return as soon as the first message is encountered.
-
ONE_OR_MORE
Multiple responses are required, wait for the response timeout and collate all responses. If no response comes in, throw an exception.Less efficient but caters for multiple sources of the response if there may be some.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-