You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document provides an overview of changes introduced by the
4
+
high-performance client.
5
+
6
+
`Subscriber`
7
+
------------
8
+
Previously, the client provided two ways to pull messages from topics.
9
+
- Use the [`pull`](http://googlecloudplatform.github.io/google-cloud-java/0.8.0/apidocs/com/google/cloud/pubsub/PubSub.html#pull-java.lang.String-int-) method then [`ack`](http://googlecloudplatform.github.io/google-cloud-java/0.8.0/apidocs/com/google/cloud/pubsub/PubSub.html#ack-java.lang.String-java.lang.Iterable-) or [`nack`](http://googlecloudplatform.github.io/google-cloud-java/0.8.0/apidocs/com/google/cloud/pubsub/PubSub.html#nack-java.lang.String-java.lang.Iterable-).
10
+
- Use the [`pullAsync`](http://googlecloudplatform.github.io/google-cloud-java/0.8.0/apidocs/com/google/cloud/pubsub/PubSub.html#pullAsync-java.lang.String-com.google.cloud.pubsub.PubSub.MessageProcessor-com.google.cloud.pubsub.PubSub.PullOption...-) method and provide a [`callback`](http://googlecloudplatform.github.io/google-cloud-java/0.8.0/apidocs/com/google/cloud/pubsub/PubSub.MessageProcessor.html).
11
+
12
+
With the high-perf client, there's only one way: the `Subscriber`.
13
+
The following is a whimsical example for printing all received messages
0 commit comments