|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WorkManager
Interface used to associate the resource adapter with objects that implement this interface.
| Field Summary | |
|---|---|
static long |
IMMEDIATE
No start delay |
static long |
INDEFINITE
Indefinite start delay |
static long |
UNKNOWN
Unknown/unspecified start delay |
| Method Summary | |
|---|---|
void |
doWork(Work work)
Executes the work, the call blocks until the work completes |
void |
doWork(Work work,
long startTimeout,
ExecutionContext ctx,
WorkListener listener)
Executes the work, the call blocks until the work completes |
void |
scheduleWork(Work work)
Executes the work, the call returns immediatley |
void |
scheduleWork(Work work,
long startTimeout,
ExecutionContext ctx,
WorkListener listener)
Executes the work, the call returns immediately |
long |
startWork(Work work)
Executes the work, the call blocks until the work starts |
long |
startWork(Work work,
long startTimeout,
ExecutionContext ctx,
WorkListener listener)
Executes the work, the call blocks until the work starts |
| Field Detail |
|---|
static final long UNKNOWN
static final long IMMEDIATE
static final long INDEFINITE
| Method Detail |
|---|
void doWork(Work work)
throws WorkException
work - the work
WorkException - a generic error
WorkRejectedException - if the work is rejected
WorkCompletedException - if the work completes with an exception
void doWork(Work work,
long startTimeout,
ExecutionContext ctx,
WorkListener listener)
throws WorkException
work - the workstartTimeout - the wait before executionctx - the execution contextlistener - the work listener
WorkException - a generic error
WorkRejectedException - if the work is rejected
WorkCompletedException - if the work completes with an exception
long startWork(Work work)
throws WorkException
work - the work
WorkException - a generic error
WorkRejectedException - if the work is rejected
long startWork(Work work,
long startTimeout,
ExecutionContext ctx,
WorkListener listener)
throws WorkException
work - the workstartTimeout - the wait before executionctx - the execution contextlistener - the work listener
WorkException - a generic error
WorkRejectedException - if the work is rejected
void scheduleWork(Work work)
throws WorkException
work - the work
WorkException - a generic error
WorkRejectedException - if the work is rejected
void scheduleWork(Work work,
long startTimeout,
ExecutionContext ctx,
WorkListener listener)
throws WorkException
work - the workstartTimeout - the wait before executionctx - the execution contextlistener - the work listener
WorkException - a generic error
WorkRejectedException - if the work is rejected
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||