String无法转换为T java lambda表达式

时间:2016-04-12 08:02:39

标签: java lambda

如何解决此错误? 我的代码是:

  public Future<Set<Client>> getAllClients(){
    Future<Set<Client>> result = executorService.submit(() -> {
        Message request = new Message(HelloService.GETALL, "");
        Message response = tcpClient.sendAndReceive(request);
        String body =response.body();
        return body;
    });
    return result;
}

0 个答案:

没有答案