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.
Enum Constant and Description |
---|
AfterOffset |
AtOffset |
AtTime |
Latest |
TrimHorizon |
Modifier and Type | Method and Description |
---|---|
static CreateCursorDetails.Type |
create(String key) |
String |
getValue() |
static CreateCursorDetails.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CreateCursorDetails.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreateCursorDetails.Type AfterOffset
public static final CreateCursorDetails.Type AtOffset
public static final CreateCursorDetails.Type AtTime
public static final CreateCursorDetails.Type Latest
public static final CreateCursorDetails.Type TrimHorizon
public static CreateCursorDetails.Type[] values()
for (CreateCursorDetails.Type c : CreateCursorDetails.Type.values()) System.out.println(c);
public static CreateCursorDetails.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static CreateCursorDetails.Type create(String key)
Copyright © 2016–2024. All rights reserved.