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,
TimeUnit unit) |
Future<?> |
getFuture() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
run() |
public TaskWrapper(TimeScheduler.Task task)
public Future<?> getFuture()
public void doSchedule()
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<V>
public V get() throws InterruptedException, ExecutionException
get
in interface Future<V>
InterruptedException
ExecutionException
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<V>
InterruptedException
ExecutionException
TimeoutException
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.