0
guava docs에 설명 된대로 내가 다음 코드ListenableScheduledFuture 및 ListeningScheduledExecutorService
service = MoreExecutors.listeningDecorator(new ScheduledThreadPoolExecutor(corePoolSize));
를 통해 ListeningScheduledExecutorService의 인스턴스를 생성하고있다.
하지만 난 형 "의 ScheduledFuture"이며 없습니다 유형의 "ListenableScheduledTask"
Future future = service.schedule(callableObj, delay, TimeUnit.MILLISECONDS);
변수 "미래"를 호출 할 때.
제가 누락 된 것이 있습니까?
의 유형을 변경에 "ListenableScheduledFuture는"컴파일 오류를 제공 /사용자/gaurav/문서/작업/포털 bheem-FE/SRC/COM/bsb/portal/event/AbstractEventListener.java : 39 : 오류 : 호환되지 않는 유형 [javac] ListenableScheduledFuture
업데이트합니다 구아바 버전 : –
을 구아바 버전이 문제를 해결 업데이트. –