Optional<String> empty = Optional.empty();
FutureTask<List<Map<String, String>>> futureTask = new FutureTask<>(new VisitorCall(zoneIds));
Thread thread = new Thread(futureTask, "getPortalZonesThread");
thread.start();
List<ZoneBean> list = zoneDao.getPortalZones(keyword, type, serviceIds, regionCodes, userCode, null);
Map<String, List<UserBean>> zoneVisitorsMap = new HashMap<>();
FutureTask<List<Map<String, String>>> futureTask = new FutureTask<>(new VisitorCall(zoneIdList));
Thread thread = new Thread(futureTask, "getLatestVisitorsThread");
thread.setUncaughtExceptionHandler(
(threadVal, errorMess) -> LOGGER.error(threadVal.getName() + "--" + errorMess.getMessage()));
thread.start();
标签:VisitorCall,wdd,thread,Thread,FutureTask,futureTask,new
From: https://www.cnblogs.com/ppku/p/16803417.html