java.lang.Object
com.atlassian.confluence.internal.api.incrementalsync.model.IncrementalSyncCursor
All Implemented Interfaces:
Cursor, Serializable

public class IncrementalSyncCursor extends Object implements Cursor, Serializable
A class which could be used to generate cursor for the next incremental sync pagination request
Since:
9.3
See Also:
  • Constructor Details

    • IncrementalSyncCursor

      public IncrementalSyncCursor(long subscriptionId, long mostRecentId)
  • Method Details

    • isReverse

      public boolean isReverse()
      Description copied from interface: Cursor
      Indicates that records should be sorted in backward direction when this cursor is used
      Specified by:
      isReverse in interface Cursor
      Returns:
      true if this cursor is previous cursor (records go in backward direction)
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: Cursor
      Indicates that cursor is empty (first cursor in forward direction)
      Specified by:
      isEmpty in interface Cursor
      Returns:
      true if cursor is empty
    • getCursorType

      public CursorType getCursorType()
      Specified by:
      getCursorType in interface Cursor
      Returns:
      Type of the cursor
    • getSubscriptionId

      public long getSubscriptionId()
    • getMostRecentId

      public long getMostRecentId()
    • of

      public static IncrementalSyncCursor of(String cursor)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object