public static enum UDPDiscoveryMessage.BroadcastType extends Enum<UDPDiscoveryMessage.BroadcastType>
Enum Constant and Description |
---|
PASSIVE
This is the periodic broadcast of a servers location.
|
REMOVE
This message instructs the receiver to remove this service from its list.
|
REQUEST
This asks recipients to broadcast their location.
|
Modifier and Type | Method and Description |
---|---|
static UDPDiscoveryMessage.BroadcastType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UDPDiscoveryMessage.BroadcastType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UDPDiscoveryMessage.BroadcastType PASSIVE
public static final UDPDiscoveryMessage.BroadcastType REQUEST
public static final UDPDiscoveryMessage.BroadcastType REMOVE
public static UDPDiscoveryMessage.BroadcastType[] values()
for (UDPDiscoveryMessage.BroadcastType c : UDPDiscoveryMessage.BroadcastType.values()) System.out.println(c);
public static UDPDiscoveryMessage.BroadcastType 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 © 2002–2022 The Apache Software Foundation. All rights reserved.