Package com.tnsai.session
Enum Class SessionOutcome
- All Implemented Interfaces:
Serializable,Comparable<SessionOutcome>,Constable
Outcome of an agent session.
- Author:
- TnsAI Team
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSession was cancelled by the user.Session failed with an error.Session is still in progress.Session exceeded maximum iterations.Session completed successfully.Session timed out.Session outcome is unknown. -
Method Summary
Modifier and TypeMethodDescriptionstatic SessionOutcomeReturns the enum constant of this class with the specified name.static SessionOutcome[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
SUCCESS
Session completed successfully. -
FAILED
Session failed with an error. -
CANCELLED
Session was cancelled by the user. -
TIMEOUT
Session timed out. -
MAX_ITERATIONS
Session exceeded maximum iterations. -
IN_PROGRESS
Session is still in progress. -
UNKNOWN
Session outcome is unknown.
-
-
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
-