[infinispan-issues] [JBoss JIRA] (ISPN-6272) Extend CacheStream interface to allow for Serializable lambdas
Dan Berindei (JIRA)
issues at jboss.org
Fri Mar 11 14:15:01 EST 2016
[ https://issues.jboss.org/browse/ISPN-6272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Berindei updated ISPN-6272:
-------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> 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