Skip to content

Commit d454547

Browse files
j256pongad
authored andcommitted
---
yaml --- r: 9199 b: refs/heads/master c: 1e79087 h: refs/heads/master i: 9197: c7d07a0 9195: 0520495 9191: 0bd42c7 9183: 1cc614c
1 parent 972e474 commit d454547

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: d0a2fc2247926ee1192006ab36df2ee87c1dde93
2+
refs/heads/master: 1e79087946dec7bc1a620ef620638ef58ab27396
33
refs/heads/travis: 47e4fee4fd5af9b2a8ce46f23c72ec95f9b195b2
44
refs/heads/gh-pages: c44712253909b883eff39836632d6fa5763aa5af
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)