Package markets.alpaca.client.ws
Enum Class AlpacaStreamAuthResult.Status
java.lang.Object
java.lang.Enum<AlpacaStreamAuthResult.Status>
markets.alpaca.client.ws.AlpacaStreamAuthResult.Status
- All Implemented Interfaces:
Serializable,Comparable<AlpacaStreamAuthResult.Status>,Constable
- Enclosing class:
- AlpacaStreamAuthResult
Outcome categories for stream authentication.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe stream authenticated successfully.The stream closed before authentication completed.The stream became terminal before authentication completed for another reason.The caller's wait was interrupted before authentication completed.The server rejected the credentials or authentication request.The caller's wait timed out before authentication completed. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AlpacaStreamAuthResult.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTHENTICATED
The stream authenticated successfully. -
SERVER_REJECTED
The server rejected the credentials or authentication request. -
CLOSED
The stream closed before authentication completed. -
TIMEOUT
The caller's wait timed out before authentication completed. -
INTERRUPTED
The caller's wait was interrupted before authentication completed. -
FAILED
The stream became terminal before authentication completed for another reason.
-
-
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
-