1
1
/*
2
- * Copyright 2019-2024 the original author or authors.
2
+ * Copyright 2019-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -131,20 +131,23 @@ public Flux<String> subscription() {
131
131
return subscriptions .flatMapIterable (Function .identity ());
132
132
}
133
133
134
+ @ SuppressWarnings ("NullAway" ) // Lambda
134
135
public Mono <Void > seek (TopicPartition partition , long offset ) {
135
136
return doOnConsumer (consumer -> {
136
137
consumer .seek (partition , offset );
137
138
return null ;
138
139
});
139
140
}
140
141
142
+ @ SuppressWarnings ("NullAway" ) // Lambda
141
143
public Mono <Void > seekToBeginning (TopicPartition ... partitions ) {
142
144
return doOnConsumer (consumer -> {
143
145
consumer .seekToBeginning (Arrays .asList (partitions ));
144
146
return null ;
145
147
});
146
148
}
147
149
150
+ @ SuppressWarnings ("NullAway" ) // Lambda
148
151
public Mono <Void > seekToEnd (TopicPartition ... partitions ) {
149
152
return doOnConsumer (consumer -> {
150
153
consumer .seekToEnd (Arrays .asList (partitions ));
@@ -170,13 +173,15 @@ public Flux<TopicPartition> paused() {
170
173
return paused .flatMapIterable (Function .identity ());
171
174
}
172
175
176
+ @ SuppressWarnings ("NullAway" ) // Lambda
173
177
public Mono <Void > pause (TopicPartition ... partitions ) {
174
178
return doOnConsumer (c -> {
175
179
c .pause (Arrays .asList (partitions ));
176
180
return null ;
177
181
});
178
182
}
179
183
184
+ @ SuppressWarnings ("NullAway" ) // Lambda
180
185
public Mono <Void > resume (TopicPartition ... partitions ) {
181
186
return doOnConsumer (c -> {
182
187
c .resume (Arrays .asList (partitions ));
0 commit comments