Enum HeartBeatManager.PingFailedReason
-
- All Implemented Interfaces:
public enum HeartBeatManager.PingFailedReason
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOST_PONG_LIMIT
Lost pong limit exceeded: 6 in the foreground, 1 in the background. Triggered when sending a ping.
SERVER_TIMEOUT
Server timeout exceeded. When returning from the background to the foreground, calculate the difference between the last received pong time and the current time. If it exceeds the configured time, the user is considered offline.
FIRST_PING_TIMEOUT
/
RECEIVE_PONG_TIMEOUT
Triggered when the difference between the time of receiving a pong and the first ping in the queue exceeds the timeout threshold. The condition is similar to LOST_PONG_LIMIT, but the triggering timing is different.
NO_CONNECTED_FIRST_FOREGROUND
The app returns to the foreground, but it is not in the CONNECTED state, triggering a reconnection
-
Method Summary
Modifier and Type Method Description static Array<HeartBeatManager.PingFailedReason>
values()
Returns an array containing the constants of this enum type, in the order they're declared. static HeartBeatManager.PingFailedReason
valueOf(String name)
Returns the enum constant of this type with the specified name. -
-
Method Detail
-
values
static Array<HeartBeatManager.PingFailedReason> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static HeartBeatManager.PingFailedReason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
-
-
-