File tree Expand file tree Collapse file tree
trunk/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
2- refs/heads/master: d0a2fc2247926ee1192006ab36df2ee87c1dde93
2+ refs/heads/master: 1e79087946dec7bc1a620ef620638ef58ab27396
33refs/heads/travis: 47e4fee4fd5af9b2a8ce46f23c72ec95f9b195b2
44refs/heads/gh-pages: c44712253909b883eff39836632d6fa5763aa5af
55refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
Original file line number Diff line number Diff line change @@ -290,7 +290,12 @@ public void run() {
290290 }
291291 }
292292
293- private void publishAllOutstanding () {
293+ /**
294+ * Publish any outstanding batches if non-empty. This method sends buffered messages, but does
295+ * not wait for the send operations to complete. To wait for messages to send, call {@code get}
296+ * on the futures returned from {@code publish}.
297+ */
298+ public void publishAllOutstanding () {
294299 messagesBatchLock .lock ();
295300 OutstandingBatch batchToSend ;
296301 try {
You can’t perform that action at this time.
0 commit comments