Enum Class StreamFrom

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

public enum StreamFrom extends Enum<StreamFrom>
From which point in time to start the DCP stream.
Since:
1.0.0
Author:
Michael Nitschinger
  • Enum Constant Details

    • BEGINNING

      public static final StreamFrom BEGINNING
      Start at the very beginning - will stream all docs in the bucket.
    • NOW

      public static final StreamFrom NOW
      Start "now", where now is a time point of execution in the running program where the state is gathered from each partition. Mutations will be streamed after this point.
  • Method Details

    • values

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