use of org.apache.openejb.threads.future.CUFuture in project tomee by apache.
the class ManagedExecutorServiceImpl method submit.
@Override
public <T> Future<T> submit(final Runnable task, final T result) {
final CURunnable wrapper = new CURunnable(task);
final Future<T> future = delegate.submit(wrapper, result);
wrapper.taskSubmitted(future, this, task);
return new CUFuture<>(future, wrapper);
}
use of org.apache.openejb.threads.future.CUFuture in project tomee by apache.
the class ManagedExecutorServiceImpl method submit.
@Override
public Future<?> submit(final Runnable task) {
final CURunnable wrapper = new CURunnable(task);
final Future<?> future = delegate.submit(wrapper);
wrapper.taskSubmitted(future, this, task);
return new CUFuture<>(Future.class.cast(future), wrapper);
}
Aggregations