protected class DefaultTimeScheduler.TaskWrapper<V>
extends java.lang.Object
implements java.lang.Runnable, java.util.concurrent.Future<V>
Constructor and Description |
---|
TaskWrapper(TimeScheduler.Task task) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
void |
doSchedule() |
V |
get() |
V |
get(long timeout,
java.util.concurrent.TimeUnit unit) |
java.util.concurrent.Future<?> |
getFuture() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
run() |
public TaskWrapper(TimeScheduler.Task task)
public java.util.concurrent.Future<?> getFuture()
public void run()
run
in interface java.lang.Runnable
public void doSchedule()
public boolean cancel(boolean mayInterruptIfRunning)
cancel
in interface java.util.concurrent.Future<V>
public boolean isCancelled()
isCancelled
in interface java.util.concurrent.Future<V>
public boolean isDone()
isDone
in interface java.util.concurrent.Future<V>
public V get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
get
in interface java.util.concurrent.Future<V>
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public V get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
get
in interface java.util.concurrent.Future<V>
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
Copyright © 1998-2020 Red Hat. All Rights Reserved.