public enum StreamFlags extends Enum<StreamFlags>
| Enum Constant and Description |
|---|
ACTIVE_VB_ONLY
Indicate the server to add stream only if the VBucket is active.
|
DISK_ONLY
Specifies that the stream should only send items only if they are on disk.
|
LATEST
Specifies that the server should stream all mutations up to the current sequence number
for that VBucket.
|
NO_VALUE
Deprecated.
(Removed in 5.0, use OpenConnectionFlag.NO_VALUE when opening the connection instead)
|
STRICT_VB_UUID
Indicate the server to check for vb_uuid match even at start_seqno 0 before
adding the stream successfully.
|
TAKEOVER
Specifies that the stream should send over all remaining data to the remote node and
then set the remote nodes VBucket to active state and the source nodes VBucket to dead.
|
| Modifier and Type | Method and Description |
|---|---|
static Set<StreamFlags> |
decode(int flags) |
static int |
encode(Set<StreamFlags> flags) |
boolean |
isSet(int flags) |
int |
value() |
static StreamFlags |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StreamFlags[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamFlags TAKEOVER
public static final StreamFlags DISK_ONLY
public static final StreamFlags LATEST
@Deprecated public static final StreamFlags NO_VALUE
public static final StreamFlags ACTIVE_VB_ONLY
public static final StreamFlags STRICT_VB_UUID
public static StreamFlags[] values()
for (StreamFlags c : StreamFlags.values()) System.out.println(c);
public static StreamFlags 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<StreamFlags> flags)
public static Set<StreamFlags> decode(int flags)
Copyright © 2021 Couchbase, Inc.. All rights reserved.