Package org.red5.io.sctp.packet.chunks
Enum ChunkType
- java.lang.Object
-
- java.lang.Enum<ChunkType>
-
- org.red5.io.sctp.packet.chunks.ChunkType
-
- All Implemented Interfaces:
Serializable,Comparable<ChunkType>
public enum ChunkType extends Enum<ChunkType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTCOOKIE_ACKCOOKIE_ECHOCWRDATAECNEERRORHEARTBEATHEARTBEAT_ACKINITINIT_ACKSACKSHUTDOWNSHUTDOWN_ACKSHUTDOWN_COMPLETE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static ChunkTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ChunkType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DATA
public static final ChunkType DATA
-
INIT
public static final ChunkType INIT
-
INIT_ACK
public static final ChunkType INIT_ACK
-
SACK
public static final ChunkType SACK
-
HEARTBEAT
public static final ChunkType HEARTBEAT
-
HEARTBEAT_ACK
public static final ChunkType HEARTBEAT_ACK
-
ABORT
public static final ChunkType ABORT
-
SHUTDOWN
public static final ChunkType SHUTDOWN
-
SHUTDOWN_ACK
public static final ChunkType SHUTDOWN_ACK
-
ERROR
public static final ChunkType ERROR
-
COOKIE_ECHO
public static final ChunkType COOKIE_ECHO
-
COOKIE_ACK
public static final ChunkType COOKIE_ACK
-
ECNE
public static final ChunkType ECNE
-
CWR
public static final ChunkType CWR
-
SHUTDOWN_COMPLETE
public static final ChunkType SHUTDOWN_COMPLETE
-
-
Method Detail
-
values
public static ChunkType[] 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 (ChunkType c : ChunkType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChunkType 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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()
-
-