[infinispan-issues] [JBoss JIRA] (ISPN-6272) Extend CacheStream interface to allow for Serializable lambdas
William Burns (JIRA)
issues at jboss.org
Thu Feb 25 16:34:00 EST 2016
William Burns created ISPN-6272:
-----------------------------------
Summary: 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}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the infinispan-issues
mailing list