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>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    activeVbucketOnly(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
    Set StreamFlags.ACTIVE_VB_ONLY flag for the stream.
    static void
    diskOnly(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
    Set StreamFlags.DISK_ONLY flag for the stream.
    static void
    endSeqno(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long seqnoEnd)
     
    static int
    flags(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
     
    static void
    flags(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, int flags)
     
    static void
    init(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, Set<StreamFlags> flags, int vbucket)
    Initialize the buffer with all the values needed.
    static boolean
    is(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
    If the given buffer is a DcpOpenStreamRequest message.
    static void
    latest(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
    Set StreamFlags.LATEST flag for the stream.
    static void
    noValue(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
    Set StreamFlags.NO_VALUE flag for the stream.
    static void
    opaque(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, int opaque)
     
    static void
    snapshotEndSeqno(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long snapshotSeqnoEnd)
     
    static void
    snapshotStartSeqno(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long snapshotSeqnoStart)
     
    static void
    startSeqno(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long seqnoStart)
     
    static void
    strictVbucketUuid(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
    Set StreamFlags.STRICT_VB_UUID flag for the stream.
    static void
    takeover(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
    Set StreamFlags.TAKEOVER flag for the stream.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.
    static void
    vbuuid(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long uuid)
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
      If the given buffer is a DcpOpenStreamRequest message.
    • init

      public static void init(com.couchbase.client.core.deps.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(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long seqnoStart)
    • endSeqno

      public static void endSeqno(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long seqnoEnd)
    • vbuuid

      public static void vbuuid(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long uuid)
    • snapshotStartSeqno

      public static void snapshotStartSeqno(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long snapshotSeqnoStart)
    • snapshotEndSeqno

      public static void snapshotEndSeqno(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long snapshotSeqnoEnd)
    • opaque

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

      public static int flags(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)
    • takeover

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

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

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

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

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

      public static void strictVbucketUuid(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
      Set StreamFlags.STRICT_VB_UUID flag for the stream.