[WEBSOCKET_SPEC-32] SendHandler: Consider using JDK 7 CompletionHandler instead Created: 17/Oct/12 Updated: 30/Nov/12 Due: 16/Nov/12 Resolved: 30/Nov/12
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
One counter argument is that we'd like only to use SAM types in the API so that it is easy to write lambdas when we can rely in JDK 8. Will check into whether there are plans for this JDK interface to evolve to be 'lambda-ready'.
|Comment by dannycoward [ 30/Nov/12 ]|
We concluded this this would make the API more difficult to use, and we prefer our single method abstract SendHandler type because we think it will be, in addition to the typing information which is useful, easier to write as a Java lambda experssion in the future.