Enum CreateCursorDetails.Type

  • All Implemented Interfaces:
    BmcEnum, Serializable, Comparable<CreateCursorDetails.Type>
    Enclosing class:
    CreateCursorDetails

    public static enum CreateCursorDetails.Type
    extends Enum<CreateCursorDetails.Type>
    implements BmcEnum
    The type of cursor, which determines the starting point from which the stream will be consumed:

    - AFTER_OFFSET: The partition position immediately following the offset you specify. (Offsets are assigned when you successfully append a message to a partition in a stream.) - AT_OFFSET: The exact partition position indicated by the offset you specify. - AT_TIME: A specific point in time. - LATEST: The most recent message in the partition that was added after the cursor was created. - TRIM_HORIZON: The oldest message in the partition that is within the retention period window.

    • Method Detail

      • values

        public static CreateCursorDetails.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CreateCursorDetails.Type c : CreateCursorDetails.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CreateCursorDetails.Type 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