Package com.oracle.bmc.streaming.model
Class CreateCursorDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.streaming.model.CreateCursorDetails
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20180418") public final class CreateCursorDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelObject used to create a cursor to consume messages in a stream.
Note: Objects should always be created or deserialized using theCreateCursorDetails.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theCreateCursorDetails.Builder, which maintain a set of all explicitly set fields calledCreateCursorDetails.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateCursorDetails.Builderstatic classCreateCursorDetails.TypeThe type of cursor, which determines the starting point from which the stream will be consumed:
-
Constructor Summary
Constructors Constructor Description CreateCursorDetails(String partition, CreateCursorDetails.Type type, Long offset, Date time)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateCursorDetails.Builderbuilder()Create a new builder.booleanequals(Object o)LonggetOffset()The offset to consume from if the cursor type is AT_OFFSET or AFTER_OFFSET.StringgetPartition()The partition to get messages from.DategetTime()The time to consume from if the cursor type is AT_TIME, expressed in RFC 3339 timestamp format.CreateCursorDetails.TypegetType()The type of cursor, which determines the starting point from which the stream will be consumed:inthashCode()CreateCursorDetails.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
CreateCursorDetails
@Deprecated @ConstructorProperties({"partition","type","offset","time"}) public CreateCursorDetails(String partition, CreateCursorDetails.Type type, Long offset, Date time)
Deprecated.
-
-
Method Detail
-
builder
public static CreateCursorDetails.Builder builder()
Create a new builder.
-
toBuilder
public CreateCursorDetails.Builder toBuilder()
-
getPartition
public String getPartition()
The partition to get messages from.- Returns:
- the value
-
getType
public CreateCursorDetails.Type getType()
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.
- Returns:
- the value
-
getOffset
public Long getOffset()
The offset to consume from if the cursor type is AT_OFFSET or AFTER_OFFSET.- Returns:
- the value
-
getTime
public Date getTime()
The time to consume from if the cursor type is AT_TIME, expressed in RFC 3339 timestamp format.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-