@UnstableApi public enum RedisMessageType extends Enum<RedisMessageType>
Enum Constant and Description |
---|
ARRAY |
ARRAY_HEADER |
BULK_STRING |
ERROR |
INTEGER |
SIMPLE_STRING |
Modifier and Type | Method and Description |
---|---|
boolean |
isInline()
Returns
true if this type is inline type, or returns false . |
byte |
value()
Returns prefix
byte for this type. |
static RedisMessageType |
valueOf(byte value)
Return
RedisMessageType for this type prefix byte . |
static RedisMessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RedisMessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RedisMessageType SIMPLE_STRING
public static final RedisMessageType ERROR
public static final RedisMessageType INTEGER
public static final RedisMessageType BULK_STRING
public static final RedisMessageType ARRAY_HEADER
public static final RedisMessageType ARRAY
public static RedisMessageType[] values()
for (RedisMessageType c : RedisMessageType.values()) System.out.println(c);
public static RedisMessageType 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 value()
byte
for this type.public boolean isInline()
true
if this type is inline type, or returns false
. If this is true
,
this type doesn't have length field.public static RedisMessageType valueOf(byte value)
RedisMessageType
for this type prefix byte
.Copyright © 2008–2017 The Netty Project. All rights reserved.