public enum NetlinkMessageType extends Enum<NetlinkMessageType>
This is a subset of the types used for routing messages (rtnelink). Taken from linux/rtnetlink.h
| Enum Constant and Description |
|---|
RTM_DELROUTE |
RTM_GETROUTE |
RTM_NEWROUTE |
| Modifier and Type | Method and Description |
|---|---|
static NetlinkMessageType |
get(int type)
Gets the NetlinkMessageType for the given integer type value.
|
int |
type()
Returns the integer type value for this message type.
|
static NetlinkMessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetlinkMessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetlinkMessageType RTM_NEWROUTE
public static final NetlinkMessageType RTM_DELROUTE
public static final NetlinkMessageType RTM_GETROUTE
public static NetlinkMessageType[] values()
for (NetlinkMessageType c : NetlinkMessageType.values()) System.out.println(c);
public static NetlinkMessageType 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 int type()
public static NetlinkMessageType get(int type)
type - type value