Package im.zego.zegoexpress.constants
Enum ZegoStreamRelayCDNState
- java.lang.Object
-
- java.lang.Enum<ZegoStreamRelayCDNState>
-
- im.zego.zegoexpress.constants.ZegoStreamRelayCDNState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoStreamRelayCDNState>
public enum ZegoStreamRelayCDNState extends java.lang.Enum<ZegoStreamRelayCDNState>
State of CDN relay.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_RELAY
The state indicates that there is no CDN relayRELAY_REQUESTING
The CDN relay is being requestedRELAYING
Entering this status indicates that the CDN relay has been successful
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoStreamRelayCDNState
getZegoStreamRelayCDNState(int value)
int
value()
static ZegoStreamRelayCDNState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoStreamRelayCDNState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_RELAY
public static final ZegoStreamRelayCDNState NO_RELAY
The state indicates that there is no CDN relay
-
RELAY_REQUESTING
public static final ZegoStreamRelayCDNState RELAY_REQUESTING
The CDN relay is being requested
-
RELAYING
public static final ZegoStreamRelayCDNState RELAYING
Entering this status indicates that the CDN relay has been successful
-
-
Method Detail
-
values
public static ZegoStreamRelayCDNState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ZegoStreamRelayCDNState c : ZegoStreamRelayCDNState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoStreamRelayCDNState valueOf(java.lang.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.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public int value()
-
getZegoStreamRelayCDNState
public static ZegoStreamRelayCDNState getZegoStreamRelayCDNState(int value)
-
-