forked from github/copilot-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConnectionState.java
More file actions
36 lines (31 loc) · 934 Bytes
/
ConnectionState.java
File metadata and controls
36 lines (31 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------------------------------------------*/
package com.github.copilot.sdk;
/**
* Represents the connection state of a {@link CopilotClient}.
* <p>
* The connection state indicates the current status of the client's connection
* to the Copilot CLI server.
*
* @see CopilotClient#getState()
* @since 1.0.0
*/
public enum ConnectionState {
/**
* The client is not connected to the server.
*/
DISCONNECTED,
/**
* The client is in the process of connecting to the server.
*/
CONNECTING,
/**
* The client is connected and ready to accept requests.
*/
CONNECTED,
/**
* The client encountered an error during connection or operation.
*/
ERROR
}