public static enum SNACKRequestParser.SNACKType extends Enum<SNACKRequestParser.SNACKType>
| Type | Description |
|---|---|
| 0 | Data/R2T SNACK - requesting retransmission of one or more Data- In or R2T PDUs. |
| 1 | Status SNACK - requesting retransmission of one or more numbered responses. |
| 2 | DataACK - positively acknowledges Data-In PDUs. |
| 3 | R-Data SNACK - requesting retransmission of Data-In PDUs with possible resegmentation and status tagging. |
All other values are reserved.
Data/R2T SNACK, Status SNACK, or R-Data SNACK for a command MUST precede status acknowledgement for the given command.
| Enum Constant and Description |
|---|
DATA_ACK
The DataACK.
|
DATA_R2T_SNACK
The Data/R2T-Snack.
|
R_DATA_SNACK
The R-Data SNACK.
|
STATUS_SNACK
The Status-SNACK.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
value()
Returns the value of this enumeration.
|
static SNACKRequestParser.SNACKType |
valueOf(byte value)
Returns the constant defined for the given
value. |
static SNACKRequestParser.SNACKType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SNACKRequestParser.SNACKType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SNACKRequestParser.SNACKType DATA_R2T_SNACK
public static final SNACKRequestParser.SNACKType STATUS_SNACK
public static final SNACKRequestParser.SNACKType DATA_ACK
public static final SNACKRequestParser.SNACKType R_DATA_SNACK
public static SNACKRequestParser.SNACKType[] values()
for (SNACKRequestParser.SNACKType c : SNACKRequestParser.SNACKType.values()) System.out.println(c);
public static SNACKRequestParser.SNACKType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic final byte value()
public static final SNACKRequestParser.SNACKType valueOf(byte value)
value.value - The value to search for.value. Or null, if this value
is not defined by this
enumeration.Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.