GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Pub/Sub: When returnImmediatly is set to false in a PullRequest it sometimes ignores messages · Issue #3168 · googleapis/google-cloud-java Closed DescriptionI use this snippet for implementing sync pulling: Sometimes when there is a few minutes gap between messages, this snippet doesn't return I ended up doing something like this in the meantime which works perfectly but I don't like the implementation (scala): Future { val pullRequest = PullRequest.newBuilder().setMaxMessages(1).setReturnImmediately(true) .setSubscription(subscription.toString).build() val pullResponse = subscriber.pullCallable().call(pullRequest) pullResponse.getReceivedMessagesList.asScala }.flatMap { list => if (list.isEmpty) { Thread.sleep(10) pull() } else { Future.successful(list.foreach(callback.invoke)) } } `` Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |