public static enum MemcacheProtocol.Datatype extends Enum<MemcacheProtocol.Datatype>
Enum Constant and Description |
---|
SNAPPY
Snappy datatype used to signal compression.
|
XATTR
Extended attributes (XATTR)
|
Modifier and Type | Method and Description |
---|---|
byte |
datatype()
Returns the datatype byte for the given enum.
|
static MemcacheProtocol.Datatype |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MemcacheProtocol.Datatype[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemcacheProtocol.Datatype SNAPPY
public static final MemcacheProtocol.Datatype XATTR
public static MemcacheProtocol.Datatype[] values()
for (MemcacheProtocol.Datatype c : MemcacheProtocol.Datatype.values()) System.out.println(c);
public static MemcacheProtocol.Datatype 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 datatype()
Copyright © 2020 Couchbase, Inc.. All rights reserved.