Code example for ScheduledFuture

Methods: isDone

0
            return this.future.isCancelled();
        } 
 
        @Override 
        public boolean isDone() { 
            return this.future.isDone();
        } 
 
        @Override 
        public T get() throws InterruptedException, ExecutionException { 
            return this.future.get();
        } 
 
        @Override 
        public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
            return this.future.get(timeout, unit);
        } 
    } 
}