Enum Class DcpOpenStreamRequest

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

public enum DcpOpenStreamRequest extends Enum<DcpOpenStreamRequest>
  • Method Details

    • values

      public static DcpOpenStreamRequest[] 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 DcpOpenStreamRequest 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(io.netty.buffer.ByteBuf buffer)
      If the given buffer is a DcpOpenStreamRequest message.
    • init

      public static void init(io.netty.buffer.ByteBuf buffer, Set<StreamFlags> flags, int vbucket)
      Initialize the buffer with all the values needed.

      Initializes the complete extras needed with 0 and can be overridden through the setters available. If no setters are used this message is effectively a backfill for the given vbucket.

    • startSeqno

      public static void startSeqno(io.netty.buffer.ByteBuf buffer, long seqnoStart)
    • endSeqno

      public static void endSeqno(io.netty.buffer.ByteBuf buffer, long seqnoEnd)
    • vbuuid

      public static void vbuuid(io.netty.buffer.ByteBuf buffer, long uuid)
    • snapshotStartSeqno

      public static void snapshotStartSeqno(io.netty.buffer.ByteBuf buffer, long snapshotSeqnoStart)
    • snapshotEndSeqno

      public static void snapshotEndSeqno(io.netty.buffer.ByteBuf buffer, long snapshotSeqnoEnd)
    • opaque

      public static void opaque(io.netty.buffer.ByteBuf buffer, int opaque)
    • flags

      public static int flags(io.netty.buffer.ByteBuf buffer)
    • flags

      public static void flags(io.netty.buffer.ByteBuf buffer, int flags)
    • takeover

      public static void takeover(io.netty.buffer.ByteBuf buffer)
      Set StreamFlags.TAKEOVER flag for the stream.
    • diskOnly

      public static void diskOnly(io.netty.buffer.ByteBuf buffer)
      Set StreamFlags.DISK_ONLY flag for the stream.
    • latest

      public static void latest(io.netty.buffer.ByteBuf buffer)
      Set StreamFlags.LATEST flag for the stream.
    • noValue

      public static void noValue(io.netty.buffer.ByteBuf buffer)
      Set StreamFlags.NO_VALUE flag for the stream.
    • activeVbucketOnly

      public static void activeVbucketOnly(io.netty.buffer.ByteBuf buffer)
      Set StreamFlags.ACTIVE_VB_ONLY flag for the stream.
    • strictVbucketUuid

      public static void strictVbucketUuid(io.netty.buffer.ByteBuf buffer)
      Set StreamFlags.STRICT_VB_UUID flag for the stream.