| Constructor and Description |
|---|
SyncExecutor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDone(java.lang.Object future)
Check if the thread pool has terminated the execution of the job represented by a future.
|
void |
shutdown()
Shutdown the thead pool.
|
java.lang.Object |
submit(Job job)
Submit a job to be executed by the thread pool.
|
void |
waitFor(java.lang.Object future,
long timeout)
Wait for the job represented by the future to terminate.
|
public java.lang.Object submit(Job job)
Executorpublic void waitFor(java.lang.Object future,
long timeout)
ExecutorwaitFor in interface Executorfuture - the future representing the job as returned by Executor.submit(bitronix.tm.twopc.executor.Job).timeout - if the job did not finish during the specified timeout in milliseconds, this method returns anyway.public boolean isDone(java.lang.Object future)
ExecutorisDone in interface Executorfuture - the future representing the job as returned by Executor.submit(bitronix.tm.twopc.executor.Job).Copyright © 2006-2019 Bitronix Software. All Rights Reserved.