apache / apache/dubbo

Support passing JAVA Predicate as parameters for exposed APIs

Open
#5,111 1 comment 0 reactions 1 assignee Claimed by @The-Gamer-01 View on GitHub
type/proposal
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

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 condition);`
Implementation side:
`boolean testSomeCondition(final Predicate 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.