public interface TaskExecutor extends Executor
Modifier and Type | Interface and Description |
---|---|
static interface |
TaskExecutor.Factory |
static interface |
TaskExecutor.PrincipalAccessor |
Modifier and Type | Method and Description |
---|---|
TaskExecutor.Factory |
getFactory() |
boolean |
isRunning() |
<T,E extends Exception> |
run(Task<T,E> task) |
void |
start() |
void |
stop() |
void |
stopImmediately() |
<T,E extends Exception> |
submit(Task<T,E> task) |
boolean isRunning()
void start()
void stopImmediately()
void stop()
<T,E extends Exception> T run(Task<T,E> task) throws CancellationException, E extends Exception
CancellationException
E extends Exception
<T,E extends Exception> Future<T> submit(Task<T,E> task) throws CancellationException, E extends Exception
CancellationException
E extends Exception
TaskExecutor.Factory getFactory()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.