[ 
https://issues.apache.org/jira/browse/THRIFT-1894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13877997#comment-13877997
 ] 

Roger Meier commented on THRIFT-1894:
-------------------------------------

{noformat}
    [javac] Compiling 3 source files to /tmp/thrift-src/lib/java/build
    [javac] warning: [options] bootstrap class path not set in conjunction with 
-source 1.5
    [javac] 
/tmp/thrift-src/lib/java/src/org/apache/thrift/server/TAsyncThreadPoolServer.java:101:
 error: diamond operator is not supported in -source 1.5
    [javac]   private AtomicReference<State> state = new 
AtomicReference<>(State.STOPPED);
    [javac]                                                              ^
    [javac]   (use -source 7 or higher to enable diamond operator)
    [javac] 
/tmp/thrift-src/lib/java/src/org/apache/thrift/server/TAsyncThreadPoolServer.java:159:
 error: multi-catch statement is not supported in -source 1.5
    [javac]     } catch (IOException | InterruptedException | 
ExecutionException exc) {
    [javac]                          ^
    [javac]   (use -source 7 or higher to enable multi-catch statement)
    [javac] 
/tmp/thrift-src/lib/java/src/org/apache/thrift/transport/TFramedChannelTransport.java:141:
 error: multi-catch statement is not supported in -source 1.5
    [javac]     } catch (InterruptedException | ExecutionException exc) {
    [javac]                                   ^
    [javac]   (use -source 7 or higher to enable multi-catch statement)
    [javac] 3 errors
    [javac] 1 warning

> Thrift multi-threaded async Java Server using Java 7 AsynchronousChannelGroup
> -----------------------------------------------------------------------------
>
>                 Key: THRIFT-1894
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1894
>             Project: Thrift
>          Issue Type: New Feature
>          Components: Java - Library
>    Affects Versions: 1.0
>         Environment: Windows/Linux/OS X
>            Reporter: Randy Abernethy
>             Fix For: 1.0
>
>         Attachments: 0001-Java-TAsyncThreadPoolServer-and-support-files.patch
>
>
> This is a Java async thread pool server which my shop would like to 
> contribute to 1.0.
> This server creates a single thread pool to execute all client requests. Any 
> thread may be dispatched to service any request on any connection. Async 
> operations use direct ByteBuffers, allowing the underlying system to write 
> directly to the server buffer in some JVMs. No memory is typically copied by 
> the server, the Protocol reads directly from the I/O buffer. The HotSpot JVM 
> implements AsynchronousChannelGroups with I/O completion ports on Windows, 
> event port on Solaris, and epoll on Linux. The IOCP implementation makes a 
> noticeable difference in some scale out scenarios on Windows. Have found this 
> server to be good for large client counts and TThreadPoolServer to be a 
> little better with lower client counts (our experience only of course). 
> In the tar:
> Server: TAsyncThreadPoolServer.java
> Channel: TChannelManager.java
> Transport: TFramedChannelTransport.java
> Test: TestAsyncThreadPoolServer.java
> Requires Java 7.
> Happy to field questions and turn patches if needed.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to