public enum OpenConnectionFlag extends Enum<OpenConnectionFlag>
| Enum Constant and Description |
|---|
INCLUDE_DELETE_TIMES
Requests that DCP_DELETION messages include metadata regarding when a document was deleted.
|
INCLUDE_XATTRS
Requests that DCP_MUTATION, DCP_DELETION and DCP_EXPIRATION (if enabled) messages should include any XATTRs
associated with the Document.
|
NO_VALUE
Requests that DCP_MUTATION, DCP_DELETION and DCP_EXPIRATION (if enabled) messages do not include the Document.
|
NOTIFIER
Deprecated.
Notifier connections are deprecated with no replacement.
|
PRODUCER
Tells the remote peer to act as a DCP producer.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
encode(Set<OpenConnectionFlag> flags) |
boolean |
isSet(int flags) |
int |
value() |
static OpenConnectionFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpenConnectionFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpenConnectionFlag PRODUCER
If this bit is clear, the remote peer acts as a DCP consumer
(unless the NOTIFIER flag is set, which it shouldn't be since it's deprecated).
@Deprecated public static final OpenConnectionFlag NOTIFIER
public static final OpenConnectionFlag INCLUDE_XATTRS
public static final OpenConnectionFlag NO_VALUE
public static final OpenConnectionFlag INCLUDE_DELETE_TIMES
public static OpenConnectionFlag[] values()
for (OpenConnectionFlag c : OpenConnectionFlag.values()) System.out.println(c);
public static OpenConnectionFlag 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 int value()
public boolean isSet(int flags)
public static int encode(Set<OpenConnectionFlag> flags)
Copyright © 2021 Couchbase, Inc.. All rights reserved.