Package com.github.copilot.sdk
Enum Class ConnectionState
- All Implemented Interfaces:
Serializable,Comparable<ConnectionState>,Constable
Represents the connection state of a
CopilotClient.
The connection state indicates the current status of the client's connection to the Copilot CLI server.
- Since:
- 1.0.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe client is connected and ready to accept requests.The client is in the process of connecting to the server.The client is not connected to the server.The client encountered an error during connection or operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionStateReturns the enum constant of this class with the specified name.static ConnectionState[]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
-
DISCONNECTED
The client is not connected to the server. -
CONNECTING
The client is in the process of connecting to the server. -
CONNECTED
The client is connected and ready to accept requests. -
ERROR
The client encountered an error during connection or operation.
-
-
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
-