]
Work on ISPN-6272 started by William Burns.
-------------------------------------------
Extend CacheStream interface to allow for Serializable lambdas
--------------------------------------------------------------
Key: ISPN-6272
URL:
https://issues.jboss.org/browse/ISPN-6272
Project: Infinispan
Issue Type: Enhancement
Components: Distributed Execution and Map/Reduce
Reporter: William Burns
Assignee: William Burns
Fix For: 9.0.0.Alpha1
Recently it was found that we could add multiple overrides of a method where it was using
a FunctionalInterface but also make that interface extend Serializable. This would allow
for provided lambdas to be instantly serializable since the JVM will pick the most
specific argument.
Example:
{code}
CacheStream filter(Predicate<? super R> predicate);
{code}
vs
{code}
CacheStream filter(SerializablePredicate<? super R> predicate);
{code}