slfan1989 opened a new pull request, #4362:
URL: https://github.com/apache/hadoop/pull/4362

   JIRA: HDFS-16597 Improve RouterRpcServer#reload With Lambda
   
   When reading the code, I found that RouterRpcServer#reload uses the 
following method to submit threads
   RouterRpcServer#reload
   ```
   public ListenableFuture<DatanodeInfo[]> reload(
           final DatanodeReportType type, DatanodeInfo[] oldValue)
           throws Exception {
         return executorService.submit(new Callable<DatanodeInfo[]>() {
           @Override
           public DatanodeInfo[] call() throws Exception {
             return load(type);
           }
         });
       } 
   ```
   
   This place is better to use lambda .


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to