Package com.iizix.comm
Interface GCloseCodes
- All Known Implementing Classes:
SessionTransMgr
public interface GCloseCodes
User close codes for WebSockets used between IIZI Server and Client.
- Author:
- Christopher Mindus
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Close code for application message, i.e.static final int
Close code indicating the session to reconnect to has been disposed of.static final int
Close code indicating a problem with transaction history for reconnecting sessions.static final int
Close code used to indicate that the reconnecting session is occupied by an existing session.static final int
Code code indicating either party wishes to enter pause, i.e.static final int
Close code for user information.Method Summary
Modifier and TypeMethodDescriptionstatic String
getCloseCodeDescription
(int closeCode) Method to get a descriptive English text for a close code, including the standard close codes for WebSocket.
Field Details
CC_PAUSE
static final int CC_PAUSECode code indicating either party wishes to enter pause, i.e. close communication and later reconnect to the session on hold.- See Also:
CC_DISPOSED
static final int CC_DISPOSEDClose code indicating the session to reconnect to has been disposed of.- See Also:
CC_OCCUPIED
static final int CC_OCCUPIEDClose code used to indicate that the reconnecting session is occupied by an existing session.- See Also:
CC_HISTORY_ERROR
static final int CC_HISTORY_ERRORClose code indicating a problem with transaction history for reconnecting sessions.- See Also:
CC_APPMSG
static final int CC_APPMSGClose code for application message, i.e. why an app cannot start.- See Also:
CC_USERINFO
static final int CC_USERINFOClose code for user information.- See Also:
Method Details
getCloseCodeDescription
Method to get a descriptive English text for a close code, including the standard close codes for WebSocket.- Parameters:
closeCode
- The close code.- Returns:
- A descriptive text of the close code.