|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 (src) work)
Executes the work, the call blocks until the work completes |
void |
doWork(Work (src) work,
long startTimeout,
ExecutionContext (src) ctx,
WorkListener (src) listener)
Executes the work, the call blocks until the work completes |
void |
scheduleWork(Work (src) work)
Executes the work, the call returns immediatley |
void |
scheduleWork(Work (src) work,
long startTimeout,
ExecutionContext (src) ctx,
WorkListener (src) listener)
Executes the work, the call returns immediately |
long |
startWork(Work (src) work)
Executes the work, the call blocks until the work starts |
long |
startWork(Work (src) work,
long startTimeout,
ExecutionContext (src) ctx,
WorkListener (src) listener)
Executes the work, the call blocks until the work starts |
Field Detail |
public static final long UNKNOWN
public static final long IMMEDIATE
public static final long INDEFINITE
Method Detail |
public void doWork(Work (src) work) throws WorkException (src)
work
- the work
WorkException (src)
- a generic error
WorkRejectedException (src)
- if the work is rejected
WorkCompletedException (src)
- if the work completes with an exceptionpublic void doWork(Work (src) work, long startTimeout, ExecutionContext (src) ctx, WorkListener (src) listener) throws WorkException (src)
work
- the workstartTimeout
- the wait before executionctx
- the execution contextlistener
- the work listener
WorkException (src)
- a generic error
WorkRejectedException (src)
- if the work is rejected
WorkCompletedException (src)
- if the work completes with an exceptionpublic long startWork(Work (src) work) throws WorkException (src)
work
- the work
WorkException (src)
- a generic error
WorkRejectedException (src)
- if the work is rejectedpublic long startWork(Work (src) work, long startTimeout, ExecutionContext (src) ctx, WorkListener (src) listener) throws WorkException (src)
work
- the workstartTimeout
- the wait before executionctx
- the execution contextlistener
- the work listener
WorkException (src)
- a generic error
WorkRejectedException (src)
- if the work is rejectedpublic void scheduleWork(Work (src) work) throws WorkException (src)
work
- the work
WorkException (src)
- a generic error
WorkRejectedException (src)
- if the work is rejectedpublic void scheduleWork(Work (src) work, long startTimeout, ExecutionContext (src) ctx, WorkListener (src) listener) throws WorkException (src)
work
- the workstartTimeout
- the wait before executionctx
- the execution contextlistener
- the work listener
WorkException (src)
- a generic error
WorkRejectedException (src)
- if the work is rejected
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |