-
Feature Request
-
Resolution: Won't Do
-
Major
-
None
-
10.0.0.Beta1
-
None
Currently, one needs to create a Command object for each command to be executed via a CommandDispatcher. Now that WF is on Java 8, we should add support for specifying simple commands as lambdas.
e.g.
dispatcher.executeOnCluster(context -> context.doSomething());
Of course, there is the matter of serializability. I'm hoping this is a simple as making the Command interface (or some sub-interface) a @FunctionalInterface - and given that this already extends Serializable, we should be ok. This should just be a matter of experimentation.