public enum ConnectionType extends java.lang.Enum<ConnectionType>
Enum Constant and Description |
---|
LARGE_MESSAGES |
LEGACY_MESSAGES |
SMALL_MESSAGES |
STREAMING |
URGENT_MESSAGES |
Modifier and Type | Field and Description |
---|---|
int |
id |
static java.util.List<ConnectionType> |
MESSAGING_TYPES |
Modifier and Type | Method and Description |
---|---|
ConnectionCategory |
category() |
static ConnectionType |
fromId(int id) |
boolean |
isMessaging() |
boolean |
isStreaming() |
int |
twoBitID() |
static ConnectionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionType LEGACY_MESSAGES
public static final ConnectionType URGENT_MESSAGES
public static final ConnectionType SMALL_MESSAGES
public static final ConnectionType LARGE_MESSAGES
public static final ConnectionType STREAMING
public static final java.util.List<ConnectionType> MESSAGING_TYPES
public final int id
public static ConnectionType[] values()
for (ConnectionType c : ConnectionType.values()) System.out.println(c);
public static ConnectionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int twoBitID()
public boolean isStreaming()
public boolean isMessaging()
public ConnectionCategory category()
public static ConnectionType fromId(int id)
Copyright © 2009-2020 The Apache Software Foundation