Package com.oracle.bmc.streaming.model
Enum CreateCursorDetails.Type
- java.lang.Object
-
- java.lang.Enum<CreateCursorDetails.Type>
-
- com.oracle.bmc.streaming.model.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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AfterOffset
AtOffset
AtTime
Latest
TrimHorizon
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
AfterOffset
public static final CreateCursorDetails.Type AfterOffset
-
AtOffset
public static final CreateCursorDetails.Type AtOffset
-
AtTime
public static final CreateCursorDetails.Type AtTime
-
Latest
public static final CreateCursorDetails.Type Latest
-
TrimHorizon
public static final CreateCursorDetails.Type TrimHorizon
-
-
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 nameNullPointerException
- if the argument is null
-
create
public static CreateCursorDetails.Type create(String key)
-
-