public enum ThriftProtocol extends Enum<ThriftProtocol>
| Modifier and Type | Method and Description |
|---|---|
org.apache.thrift.protocol.TProtocolFactory |
getFactory() |
static ThriftProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThriftProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThriftProtocol JSON
public static final ThriftProtocol BINARY
public static final ThriftProtocol COMPACT
public static ThriftProtocol[] values()
for (ThriftProtocol c : ThriftProtocol.values()) System.out.println(c);
public static ThriftProtocol 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 org.apache.thrift.protocol.TProtocolFactory getFactory()