public static enum MemcacheProtocol.Magic extends Enum<MemcacheProtocol.Magic>
Enum Constant and Description |
---|
FLEXIBLE_REQUEST |
FLEXIBLE_RESPONSE |
REQUEST |
RESPONSE |
Modifier and Type | Method and Description |
---|---|
boolean |
isFlexible() |
boolean |
isRequest() |
byte |
magic()
Returns the magic for the given command.
|
static MemcacheProtocol.Magic |
of(byte input) |
static MemcacheProtocol.Magic |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MemcacheProtocol.Magic[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemcacheProtocol.Magic REQUEST
public static final MemcacheProtocol.Magic RESPONSE
public static final MemcacheProtocol.Magic FLEXIBLE_REQUEST
public static final MemcacheProtocol.Magic FLEXIBLE_RESPONSE
public static MemcacheProtocol.Magic[] values()
for (MemcacheProtocol.Magic c : MemcacheProtocol.Magic.values()) System.out.println(c);
public static MemcacheProtocol.Magic 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 magic()
public static MemcacheProtocol.Magic of(byte input)
public boolean isFlexible()
public boolean isRequest()
Copyright © 2020 Couchbase, Inc.. All rights reserved.