Enum Class TransmissionType
- All Implemented Interfaces:
Serializable
,Comparable<TransmissionType>
,Constable
The
TransmissionType
defines the type of a
TransmissionMessage
and therewith the mode of operation of a
transmission process.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIdentifies a request expecting an acknowledgeable response (acknowledge to be sent sent for the succeeding response).Identifies an acknowledgeable response in reply to a request (acknowledge to be sent for the response).Identifies an acknowledgeable transmission (acknowledge to be sent).Identifies a simple ping request to be responded by a fire-and-forget pong (not to be acknowledged).Identifies a request expecting a fire-and-forget response (no acknowledge to be sent for the succeeding response).Identifies a fire-and-forget response in reply to a request (no acknowledge to be sent for the response).Identifies a fire-and-forget transmission (no acknowledge sent). -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether theTransmissionType
expects an acknowledge.static TransmissionType
Returns the enum constant of this class with the specified name.static TransmissionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TRANSMISSION
Identifies a fire-and-forget transmission (no acknowledge sent). -
REQUEST
Identifies a request expecting a fire-and-forget response (no acknowledge to be sent for the succeeding response). -
RESPONSE
Identifies a fire-and-forget response in reply to a request (no acknowledge to be sent for the response). -
ACKNOWLEDGEABLE_TRANSMISSION
Identifies an acknowledgeable transmission (acknowledge to be sent). -
ACKNOWLEDGEABLE_REQUEST
Identifies a request expecting an acknowledgeable response (acknowledge to be sent sent for the succeeding response). -
ACKNOWLEDGEABLE_RESPONSE
Identifies an acknowledgeable response in reply to a request (acknowledge to be sent for the response). -
PING
Identifies a simple ping request to be responded by a fire-and-forget pong (not to be acknowledged).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isAcknowledgeable
public boolean isAcknowledgeable()Determines whether theTransmissionType
expects an acknowledge.- Returns:
- True in case an acknowledge is expected, else false.
-