Package org.zalando.fahrschein.domain
Class Cursor
- java.lang.Object
-
- org.zalando.fahrschein.domain.Cursor
-
@Immutable public final class Cursor extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Cursor(java.lang.String partition, java.lang.String offset)Cursor(java.lang.String partition, java.lang.String offset, java.lang.String eventType)Cursor(java.lang.String partition, java.lang.String offset, java.lang.String eventType, java.lang.String cursorToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetCursorToken()A token identifying this cursor and offset which has to be used when committing using the subscription api.java.lang.StringgetEventType()The event type of this cursor.java.lang.StringgetOffset()java.lang.StringgetPartition()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Cursor
public Cursor(java.lang.String partition, java.lang.String offset, @Nullable java.lang.String eventType, @Nullable java.lang.String cursorToken)
-
Cursor
public Cursor(java.lang.String partition, java.lang.String offset, java.lang.String eventType)
-
Cursor
public Cursor(java.lang.String partition, java.lang.String offset)
-
-
Method Detail
-
getPartition
public java.lang.String getPartition()
-
getOffset
public java.lang.String getOffset()
-
getEventType
@Nullable public java.lang.String getEventType()
The event type of this cursor. Only available if the batch was received using the subscription api.
-
getCursorToken
@Nullable public java.lang.String getCursorToken()
A token identifying this cursor and offset which has to be used when committing using the subscription api. Only available if the batch was received using the subscription api.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-