-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KafkaConsumer.rxCommit(Map<TopicPartition, OffsetAndMetadata>)
missing
#87
Comments
new AsyncResultSingle(handler -> {
kafkaConsumer.delegate.commit(topicOffsetMap, handler);
}); |
is the method annotated with |
@vietj yes it is. I guess it's because this kind of Map with more complex types isn't supported by vertx-codgen. I read the following from the documentation : type java.util.Map<String, C> where C contains |
Not such a big deal if you know the undocumented workaround, but still quite confusing. |
Ah, you're using reflection for this. So this https://github.com/vert-x3/vertx-rx/blob/65bcf1c87c0c74646d6bcc7354ae8d0d86b9efa8/rx-java2/src/main/resources/vertx-rxjava2/template/rxjava2.templ#L18-L28 code would only lead to
instead of
|
it does not recurse argument because it would lead to a too complex implementation, the actual rx wrappers need to maintain the type arguments as reified types if you need to access them, you should use getDelegate() to obtain the real java type and rewrap it using SingleHelper or RxHelper. |
Unfortunately SingleHelper doesn't work here (it's vice versa) and RxHelper in rx-java2 has no observableFuture. So I'll stick with using the interal AsyncResultSingle for now. Let me finally suggest that you create some dummy documentation entries (e.g. |
Looks like sth. went wrong during codegen, both
and
are missing from
io.vertx.reactivex.kafka.client.consumer.KafkaConsumer
andio.vertx.rxjava.kafka.client.consumer.KafkaConsumer
.http://vertx.io/docs/apidocs/io/vertx/kafka/client/consumer/KafkaConsumer.html#commit-java.util.Map-io.vertx.core.Handler-
http://vertx.io/docs/apidocs/io/vertx/reactivex/kafka/client/consumer/KafkaConsumer.html#commit-io.vertx.core.Handler-
http://vertx.io/docs/apidocs/io/vertx/rxjava/kafka/client/consumer/KafkaConsumer.html#commit-io.vertx.core.Handler-
Maybe the
Handler<AsyncResult<Map<TopicPartition, OffsetAndMetadata>>>
type is too complex for the codegen parser?The text was updated successfully, but these errors were encountered: