target.apidocs.com.google.api.services.pubsub.Pubsub.Projects.Topics.Snapshots.html Maven / Gradle / Ivy
Pubsub.Projects.Topics.Snapshots (Cloud Pub/Sub API v1-rev20241212-2.0.0)
com.google.api.services.pubsub
Class Pubsub.Projects.Topics.Snapshots
- java.lang.Object
-
- com.google.api.services.pubsub.Pubsub.Projects.Topics.Snapshots
-
- Enclosing class:
- Pubsub.Projects.Topics
public class Pubsub.Projects.Topics.Snapshots
extends Object
The "snapshots" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Pubsub.Projects.Topics.Snapshots.List
-
Constructor Summary
Constructors
Constructor and Description
Snapshots()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Pubsub.Projects.Topics.Snapshots.List
list(String topic)
Lists the names of the snapshots on this topic.
-
-
Method Detail
-
list
public Pubsub.Projects.Topics.Snapshots.List list(String topic)
throws IOException
Lists the names of the snapshots on this topic. Snapshots are used in
[Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to
manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages
in an existing subscription to the state captured by a snapshot.
Create a request for the method "snapshots.list".
This request holds the parameters needed by the pubsub server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
topic
- Required. The name of the topic that snapshots are attached to. Format is
`projects/{project}/topics/{topic}`.
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy