vert-x3 / vertx-kafka-client

Reactive Kafka Client for Vert.x
Apache License 2.0
84 stars 82 forks source link

Fixes #156: generate subscribe(Pattern) in JVM clients #245

Closed aesteve closed 1 year ago

aesteve commented 1 year ago

Motivation:

As mentioned in #156 : allow JVM clients (rxJava, etc.) to use subscribe(Pattern) From vertx-codegen:

We define _`JavaType`_ as the set of any Java type that does not belong to _`Basic`_, _`Json`_, _`DataObject`_, _`TypeVar`_ and _`Api`_, e.g `java.net.Socket`. 
Methods are not allowed to declare such type by default and can be annotated with `@GenIgnore(GenIgnore.PERMITTED_TYPE)` to allow them. Such
method limit the translation of the method to other languages, so it should be used with care. It is useful to allow method
previously annotated with `@GenIgnore` to be available in code generator like RxJava that can handle Java types.

java.util.regex.Pattern seems to fall pretty nicely into that JavaType bucket.