Class 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
      boolean equals​(java.lang.Object o)  
      java.lang.String getCursorToken()
      A token identifying this cursor and offset which has to be used when committing using the subscription api.
      java.lang.String getEventType()
      The event type of this cursor.
      java.lang.String getOffset()  
      java.lang.String getPartition()  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object