Class CursorClientImpl

    • Method Detail

      • listPartitionCursors

        public com.google.api.core.ApiFuture<Map<Partition,​Offset>> listPartitionCursors​(SubscriptionPath path)
        Description copied from interface: CursorClient
        List the cursors for a given subscription.
        Specified by:
        listPartitionCursors in interface CursorClient
        Parameters:
        path - The subscription to list cursors for.
        Returns:
        A future holding the map of Partition to Offset of the cursors.
      • commitCursor

        public com.google.api.core.ApiFuture<Void> commitCursor​(SubscriptionPath path,
                                                                Partition partition,
                                                                Offset offset)
        Description copied from interface: CursorClient
        Commit a single cursor.
        Specified by:
        commitCursor in interface CursorClient
        Parameters:
        path - The subscription to commit a cursor for.
        partition - The partition to commit a cursor for.
        offset - The offset to commit.
        Returns:
        A future for the operation's completion.