users@jax-rs-spec.java.net

[jax-rs-spec users] Re: NIO API Proposal in Java

From: Santiago Pericasgeertsen <santiago.pericasgeertsen_at_oracle.com>
Date: Tue, 13 Oct 2015 08:34:13 -0400

Hi Sergey,

 I’m not sure I follow. Is your question whether they can use inner classes instead of lambdas? Or if they can use a JDK without lambda support?

— Santiago

> On Oct 12, 2015, at 4:39 PM, Sergey Beryozkin <sberyozkin_at_talend.com> wrote:
>
> Hi Santiago, All
>
>> (2) NIO:
>>
>> https://github.com/spericas/api/blob/master/examples/src/main/java/jaxrs/examples/nio/FileResource.java
>> https://github.com/spericas/api/blob/master/examples/src/main/java/jaxrs/examples/nio/FileResourceClient.java
>>
>> On the server side, the proposal follows the pattern set by StreamingOutput, but of course using lambdas this time around. As you know, Servlet already supports NIO, but with a completely different API.
>>
>>
> This may be a very silly question, but can we have a FileResource code also shown in Java ? Fine with the lamdas being used there - but can users keep working with the 'traditional' Java syntax in order to work with this NIO API ?
>
> Thanks, Sergey