Enum Class DcpAddStreamRequest

java.lang.Object
java.lang.Enum<DcpAddStreamRequest>
com.couchbase.client.dcp.message.DcpAddStreamRequest
All Implemented Interfaces:
Serializable, Comparable<DcpAddStreamRequest>, java.lang.constant.Constable

public enum DcpAddStreamRequest extends Enum<DcpAddStreamRequest>
Sent to the consumer to tell the consumer to initiate a stream request with the producer
  • Method Details

    • values

      public static DcpAddStreamRequest[] 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

      public static DcpAddStreamRequest valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • is

      public static boolean is(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
    • flags

      public static int flags(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
    • takeover

      public static boolean takeover(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
      Check if StreamFlags.TAKEOVER flag requested for the stream.
    • diskOnly

      public static boolean diskOnly(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
      Check if StreamFlags.DISK_ONLY flag requested for the stream.
    • latest

      public static boolean latest(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
      Check if StreamFlags.LATEST flag requested for the stream.
    • noValue

      public static boolean noValue(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
      Check if StreamFlags.NO_VALUE flag requested for the stream.
    • activeVbucketOnly

      public static boolean activeVbucketOnly(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
      Check if StreamFlags.ACTIVE_VB_ONLY flag requested for the stream.
    • strictVbucketUuid

      public static boolean strictVbucketUuid(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
      Check if StreamFlags.STRICT_VB_UUID flag requested for the stream.
    • init

      public static void init(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
    • flags

      public static void flags(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, int flags)