public interface CursorClient extends ApiBackgroundResource
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<Void> |
commitCursor(SubscriptionPath path,
Partition partition,
Offset offset)
Commit a single cursor.
|
static CursorClient |
create(CursorClientSettings settings) |
com.google.api.core.ApiFuture<Map<Partition,Offset>> |
listPartitionCursors(SubscriptionPath path)
List the cursors for a given subscription.
|
CloudRegion |
region()
The Google Cloud region this client operates on.
|
closestatic CursorClient create(CursorClientSettings settings) throws com.google.api.gax.rpc.ApiException
com.google.api.gax.rpc.ApiExceptionCloudRegion region()
com.google.api.core.ApiFuture<Map<Partition,Offset>> listPartitionCursors(SubscriptionPath path)
path - The subscription to list cursors for.com.google.api.core.ApiFuture<Void> commitCursor(SubscriptionPath path, Partition partition, Offset offset)
path - The subscription to commit a cursor for.partition - The partition to commit a cursor for.offset - The offset to commit.Copyright © 2022 Google LLC. All rights reserved.