Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support passing JAVA Predicate as parameters for exposed APIs #5111

@TotalForgot

Description

@TotalForgot

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 generated 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

Metadata

Metadata

Assignees

Labels

type/proposalEverything you want Dubbo have

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions