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'
58
58
If you are using Gradle without BOM, add this to your dependencies:
59
59
60
60
``` Groovy
61
- implementation 'com.google.cloud:google-cloud-pubsub:1.120.2 '
61
+ implementation 'com.google.cloud:google-cloud-pubsub:1.120.3 '
62
62
```
63
63
64
64
If you are using SBT, add this to your dependencies:
65
65
66
66
``` Scala
67
- libraryDependencies += " com.google.cloud" % " google-cloud-pubsub" % " 1.120.2 "
67
+ libraryDependencies += " com.google.cloud" % " google-cloud-pubsub" % " 1.120.3 "
68
68
```
69
69
70
70
## Authentication
Original file line number Diff line number Diff line change 17
17
<className >com/google/cloud/pubsub/v1/MessageDispatcher$Builder</className >
18
18
<method >com.google.cloud.pubsub.v1.MessageDispatcher$Builder setEnableExactlyOnceDelivery(boolean)</method >
19
19
</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 >
20
37
</differences >
Original file line number Diff line number Diff line change 16
16
17
17
package com .google .cloud .pubsub .v1 ;
18
18
19
+ import com .google .api .core .ApiFuture ;
19
20
import com .google .api .core .BetaApi ;
20
- import java .util .concurrent .Future ;
21
21
22
22
/**
23
23
* 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 {
42
42
*
43
43
* <p>A future representing the server response is returned
44
44
*/
45
- Future <AckResponse > ack ();
45
+ ApiFuture <AckResponse > ack ();
46
46
47
47
/**
48
48
* Signals that the message has not been successfully processed. The service should resend the
49
49
* message.
50
50
*
51
51
* <p>A future representing the server response is returned
52
52
*/
53
- Future <AckResponse > nack ();
53
+ ApiFuture <AckResponse > nack ();
54
54
}
Original file line number Diff line number Diff line change 15
15
*/
16
16
package com .google .cloud .pubsub .v1 ;
17
17
18
+ import com .google .api .core .ApiFuture ;
18
19
import com .google .api .core .SettableApiFuture ;
19
- import java .util .concurrent .Future ;
20
20
21
21
public class AckReplyConsumerWithResponseImpl implements AckReplyConsumerWithResponse {
22
22
final SettableApiFuture <MessageDispatcher .AckReply > ackReplySettableApiFuture ;
@@ -30,13 +30,13 @@ public AckReplyConsumerWithResponseImpl(
30
30
}
31
31
32
32
@ Override
33
- public Future <AckResponse > ack () {
33
+ public ApiFuture <AckResponse > ack () {
34
34
ackReplySettableApiFuture .set (MessageDispatcher .AckReply .ACK );
35
35
return messageFuture ;
36
36
}
37
37
38
38
@ Override
39
- public Future <AckResponse > nack () {
39
+ public ApiFuture <AckResponse > nack () {
40
40
ackReplySettableApiFuture .set (MessageDispatcher .AckReply .NACK );
41
41
return messageFuture ;
42
42
}
You can’t perform that action at this time.
0 commit comments