You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Dan Smith (JIRA)" <ji...@apache.org> on 2015/12/08 01:29:11 UTC

[jira] [Created] (GEODE-641) Allow lambda expressions to be used for Geode functions

Dan Smith created GEODE-641:
-------------------------------

             Summary: Allow lambda expressions to be used for Geode functions
                 Key: GEODE-641
                 URL: https://issues.apache.org/jira/browse/GEODE-641
             Project: Geode
          Issue Type: Improvement
            Reporter: Dan Smith


Geode currently has a Function interface, as well as a FunctionAdapter abstract class that provides default implementations for most of those methods.

Unfortunately, because Function has multiple methods, lambda expressions cannot be used to define functions.

FunctionAdapter should be deprecated and default values should be provided for all of the methods on Function except for the execute method.

The getId function can probably just default to the class name.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)