Package com.couchbase.client.dcp.message
Enum Class StreamFlags
- All Implemented Interfaces:
Serializable,Comparable<StreamFlags>,java.lang.constant.Constable
Flags, that could be used when initiating new vBucket stream.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicate the server to add stream only if the VBucket is active.Specifies that the stream should only send items only if they are on disk.Specifies that the server should stream all mutations up to the current sequence number for that VBucket.Deprecated.(Removed in 5.0, use OpenConnectionFlag.NO_VALUE when opening the connection instead)Indicate the server to check for vb_uuid match even at start_seqno 0 before adding the stream successfully.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<StreamFlags>decode(int flags) static intencode(Set<StreamFlags> flags) booleanisSet(int flags) intvalue()static StreamFlagsReturns the enum constant of this class with the specified name.static StreamFlags[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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. -
DISK_ONLY
Specifies that the stream should only send items only if they are on disk. The first item sent is specified by the start sequence number and items will be sent up to the sequence number specified by the end sequence number or the last on disk item when the stream is created. -
LATEST
Specifies that the server should stream all mutations up to the current sequence number for that VBucket. The server will overwrite the value of the end sequence number field with the value of the latest sequence number. -
NO_VALUE
Deprecated.(Removed in 5.0, use OpenConnectionFlag.NO_VALUE when opening the connection instead)Specifies that the server should stream only item key and metadata in the mutations and not stream the value of the item. -
ACTIVE_VB_ONLY
Indicate the server to add stream only if the VBucket is active. If the VBucket is not active, the stream request fails with ERR_NOT_MY_VBUCKET (0x07) -
STRICT_VB_UUID
Indicate the server to check for vb_uuid match even at start_seqno 0 before adding the stream successfully. If the flag is set and there is a vb_uuid mismatch at start_seqno 0, then the server returns ENGINE_ROLLBACK error.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
value
public int value() -
isSet
public boolean isSet(int flags) -
encode
-
decode
-