public static class ThreadUtil.SynchronousRunnableeFuture<V> extends Object implements Future<V>
Constructor and Description |
---|
ThreadUtil.SynchronousRunnableeFuture(Runnable runnable) |
public ThreadUtil.SynchronousRunnableeFuture(Runnable runnable)
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 © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.