public enum Protocol extends Enum<Protocol>
Modifier and Type | Class and Description |
---|---|
static class |
Protocol.ProtocolType |
Enum Constant and Description |
---|
AMQP_0_10 |
AMQP_0_8 |
AMQP_0_9 |
AMQP_0_9_1 |
AMQP_1_0 |
HTTP |
JMX_RMI |
RMI |
Modifier and Type | Method and Description |
---|---|
Protocol.ProtocolType |
getProtocolType() |
String |
getProtocolVersion() |
boolean |
isAMQP() |
static Protocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protocol AMQP_0_8
public static final Protocol AMQP_0_9
public static final Protocol AMQP_0_9_1
public static final Protocol AMQP_0_10
public static final Protocol AMQP_1_0
public static final Protocol JMX_RMI
public static final Protocol HTTP
public static final Protocol RMI
public static Protocol[] values()
for (Protocol c : Protocol.values()) System.out.println(c);
public static Protocol 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 Protocol.ProtocolType getProtocolType()
public String getProtocolVersion()
public boolean isAMQP()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.