File tree Expand file tree Collapse file tree 4 files changed +25
-8
lines changed
src/main/java/com/google/cloud/pubsub/v1 Expand file tree Collapse file tree 4 files changed +25
-8
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub'
5858If you are using Gradle without BOM, add this to your dependencies:
5959
6060``` Groovy
61- implementation 'com.google.cloud:google-cloud-pubsub:1.120.2 '
61+ implementation 'com.google.cloud:google-cloud-pubsub:1.120.3 '
6262```
6363
6464If you are using SBT, add this to your dependencies:
6565
6666``` Scala
67- libraryDependencies += " com.google.cloud" % " google-cloud-pubsub" % " 1.120.2 "
67+ libraryDependencies += " com.google.cloud" % " google-cloud-pubsub" % " 1.120.3 "
6868```
6969
7070## Authentication
Original file line number Diff line number Diff line change 1717 <className >com/google/cloud/pubsub/v1/MessageDispatcher$Builder</className >
1818 <method >com.google.cloud.pubsub.v1.MessageDispatcher$Builder setEnableExactlyOnceDelivery(boolean)</method >
1919 </difference >
20+
21+ <difference >
22+ <!-- This should be removed after the next release 1.121.x -->
23+ <differenceType >7006</differenceType >
24+ <className >com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse</className >
25+ <method >*ack()</method >
26+ <to >com.google.api.core.ApiFuture</to >
27+ <justification >Updating return types to be consistent with Publish</justification >
28+ </difference >
29+ <difference >
30+ <!-- This should be removed after the next release 1.121.x -->
31+ <differenceType >7006</differenceType >
32+ <className >com/google/cloud/pubsub/v1/AckReplyConsumerWithResponseImpl</className >
33+ <method >*ack()</method >
34+ <to >com.google.api.core.ApiFuture</to >
35+ <justification >Updating return types to be consistent with Publish</justification >
36+ </difference >
2037</differences >
Original file line number Diff line number Diff line change 1616
1717package com .google .cloud .pubsub .v1 ;
1818
19+ import com .google .api .core .ApiFuture ;
1920import com .google .api .core .BetaApi ;
20- import java .util .concurrent .Future ;
2121
2222/**
2323 * Acknowledging a message in Pub/Sub means that you are done with it, and it will not be delivered
@@ -42,13 +42,13 @@ public interface AckReplyConsumerWithResponse {
4242 *
4343 * <p>A future representing the server response is returned
4444 */
45- Future <AckResponse > ack ();
45+ ApiFuture <AckResponse > ack ();
4646
4747 /**
4848 * Signals that the message has not been successfully processed. The service should resend the
4949 * message.
5050 *
5151 * <p>A future representing the server response is returned
5252 */
53- Future <AckResponse > nack ();
53+ ApiFuture <AckResponse > nack ();
5454}
Original file line number Diff line number Diff line change 1515 */
1616package com .google .cloud .pubsub .v1 ;
1717
18+ import com .google .api .core .ApiFuture ;
1819import com .google .api .core .SettableApiFuture ;
19- import java .util .concurrent .Future ;
2020
2121public class AckReplyConsumerWithResponseImpl implements AckReplyConsumerWithResponse {
2222 final SettableApiFuture <MessageDispatcher .AckReply > ackReplySettableApiFuture ;
@@ -30,13 +30,13 @@ public AckReplyConsumerWithResponseImpl(
3030 }
3131
3232 @ Override
33- public Future <AckResponse > ack () {
33+ public ApiFuture <AckResponse > ack () {
3434 ackReplySettableApiFuture .set (MessageDispatcher .AckReply .ACK );
3535 return messageFuture ;
3636 }
3737
3838 @ Override
39- public Future <AckResponse > nack () {
39+ public ApiFuture <AckResponse > nack () {
4040 ackReplySettableApiFuture .set (MessageDispatcher .AckReply .NACK );
4141 return messageFuture ;
4242 }
You can’t perform that action at this time.
0 commit comments