Enum DcpOpenStreamRequest

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

public enum DcpOpenStreamRequest extends Enum<DcpOpenStreamRequest>
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    endSeqno(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, long seqnoEnd)
     
    static Set<StreamFlag>
    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 int
    flagsAsInt(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer)
     
    static void
    init(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buffer, Set<StreamFlag> 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
    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)
     
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, 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.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    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 type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DcpOpenStreamRequest valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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<StreamFlag> 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)
    • flagsAsInt

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

      public static Set<StreamFlag> 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)