|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Executor
Thread pool interface required by the two-phase commit logic.
Method Summary | |
---|---|
boolean |
isDone(Object future)
Check if the thread pool has terminated the execution of the job represented by a future. |
void |
shutdown()
Shutdown the thead pool. |
Object |
submit(Job job)
Submit a job to be executed by the thread pool. |
void |
waitFor(Object future,
long timeout)
Wait for the job represented by the future to terminate. |
Method Detail |
---|
Object submit(Job job)
job
- the Runnable
to execute.
Runnable
.void waitFor(Object future, long timeout)
future
- the future representing the job as returned by submit(bitronix.tm.twopc.executor.Job)
.timeout
- if the job did not finish during the specified timeout in milliseconds, this method returns anyway.boolean isDone(Object future)
future
- the future representing the job as returned by submit(bitronix.tm.twopc.executor.Job)
.
void shutdown()
shutdown
in interface Service
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |