You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "TotalForgot (GitHub)" <gi...@apache.org> on 2019/09/24 13:23:13 UTC

[GitHub] [dubbo] TotalForgot opened issue #5111: Support passing JAVA Predicate as parameters for exposed APIs

Dear experts,

We are currently using Dubbo for exposing our APIs.

Many of our APIs are designed to consume JAVA Predicate as input parameters. For instance:

API side:
`boolean testSomeCondition(Predicate<String> condition);`
Implementation side:
`boolean testSomeCondition(final Predicate<String> condition) {
    final String stringFromInternal = "This string is generate only internally";
    return condition.test();
}`

Unfortunately, as far as we understand, Dubbo currently does not support the serialization of JAVA Predicate. 

**Our question is**: Does Dubbo community have any consideration in supporting JAVA Predicate in particular, JAVA lambda in general, in near future?

Best regards
TotalForgot

[ Full content available at: https://github.com/apache/dubbo/issues/5111 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org