Enum ThriftExchangeProtocol
- java.lang.Object
-
- java.lang.Enum<ThriftExchangeProtocol>
-
- org.apache.camel.component.thrift.ThriftExchangeProtocol
-
- All Implemented Interfaces:
Serializable
,Comparable<ThriftExchangeProtocol>
public enum ThriftExchangeProtocol extends Enum<ThriftExchangeProtocol>
Exchange protocol serialization types enum
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ThriftExchangeProtocol
valueOf(String name)
Returns the enum constant of this type with the specified name.static ThriftExchangeProtocol[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BINARY
public static final ThriftExchangeProtocol BINARY
Binary protocol
-
JSON
public static final ThriftExchangeProtocol JSON
Full JSON protocol
-
SJSON
public static final ThriftExchangeProtocol SJSON
Simple JSON protocol
-
COMPACT
public static final ThriftExchangeProtocol COMPACT
Compact binary protocol
-
-
Method Detail
-
values
public static ThriftExchangeProtocol[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ThriftExchangeProtocol c : ThriftExchangeProtocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ThriftExchangeProtocol valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-