public enum RpcProtocolVersion extends Enum<RpcProtocolVersion>
| Enum Constant and Description |
|---|
VERSION_1 |
VERSION_1_Compress |
VERSION_2 |
| Modifier and Type | Method and Description |
|---|---|
int |
getHeaderLength() |
byte |
getVersion() |
static RpcProtocolVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RpcProtocolVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RpcProtocolVersion VERSION_1
public static final RpcProtocolVersion VERSION_1_Compress
public static final RpcProtocolVersion VERSION_2
public static RpcProtocolVersion[] values()
for (RpcProtocolVersion c : RpcProtocolVersion.values()) System.out.println(c);
public static RpcProtocolVersion 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 byte getVersion()
public int getHeaderLength()
Copyright © 2020. All rights reserved.