[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

Status: Resolved
Project: websocket-spec
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: dannycoward Assignee: dannycoward
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

http://docs.oracle.com/javase/7/docs/api/java/nio/channels/CompletionHandler.html

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'.



 Comments   
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.

Generated at Sun Jan 22 03:55:24 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.