public enum MessageType extends Enum<MessageType>
NetworkClient
and NetworkServer
.Enum Constant and Description |
---|
REQUEST
The message is a request.
|
REQUEST_FAILURE
The message indicates a protocol-related failure.
|
REQUEST_RESULT
The message is a successful response.
|
SERVER_FAILURE
The message indicates a server failure.
|
Modifier and Type | Method and Description |
---|---|
static MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageType REQUEST
public static final MessageType REQUEST_RESULT
public static final MessageType REQUEST_FAILURE
public static final MessageType SERVER_FAILURE
public static MessageType[] values()
for (MessageType c : MessageType.values()) System.out.println(c);
public static MessageType 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 nullCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.