trait Publisher extends AnyRef
The service that an application uses to manipulate topics, and to send messages to a topic.
- Source
- Publisher.java
- Alphabetic
- By Inheritance
- Publisher
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def createTopic(in: Topic): CompletionStage[Topic]
Creates the given topic with the given name.
Creates the given topic with the given name. See the [resource name rules] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
- abstract def deleteTopic(in: DeleteTopicRequest): CompletionStage[Empty]
Deletes the topic with the given name.
Deletes the topic with the given name. Returns
NOT_FOUND
if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but theirtopic
field is set to_deleted-topic_
. - abstract def detachSubscription(in: DetachSubscriptionRequest): CompletionStage[DetachSubscriptionResponse]
Detaches a subscription from this topic.
Detaches a subscription from this topic. All messages retained in the subscription are dropped. Subsequent
Pull
andStreamingPull
requests will return FAILED_PRECONDITION. If the subscription is a push subscription, pushes to the endpoint will stop. - abstract def getTopic(in: GetTopicRequest): CompletionStage[Topic]
Gets the configuration of a topic.
- abstract def listTopicSnapshots(in: ListTopicSnapshotsRequest): CompletionStage[ListTopicSnapshotsResponse]
Lists the names of the snapshots on this topic.
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.
- abstract def listTopicSubscriptions(in: ListTopicSubscriptionsRequest): CompletionStage[ListTopicSubscriptionsResponse]
Lists the names of the attached subscriptions on this topic.
- abstract def listTopics(in: ListTopicsRequest): CompletionStage[ListTopicsResponse]
Lists matching topics.
- abstract def publish(in: PublishRequest): CompletionStage[PublishResponse]
Adds one or more messages to the topic.
Adds one or more messages to the topic. Returns
NOT_FOUND
if the topic does not exist. - abstract def updateTopic(in: UpdateTopicRequest): CompletionStage[Topic]
Updates an existing topic by updating the fields specified in the update mask.
Updates an existing topic by updating the fields specified in the update mask. Note that certain properties of a topic are not modifiable.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()