-
Method Summary
com.google.api.core.ApiFuture<Void>
List the cursors for a given subscription.
The Google Cloud region this client operates on.
Methods inherited from interface com.google.api.gax.core.BackgroundResource
awaitTermination, isShutdown, isTerminated, shutdown, shutdownNow
-
Method Details
-
create
- Throws:
com.google.api.gax.rpc.ApiException
-
region
The Google Cloud region this client operates on.
-
listPartitionCursors
List the cursors for a given subscription.
- Parameters:
path - The subscription to list cursors for.
- Returns:
- A future holding the map of Partition to Offset of the cursors.
-
commitCursor
Commit a single cursor.
- 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.