|
|||||||||||
PREV CLASS 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 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 |
public static final long UNKNOWN
public static final long IMMEDIATE
public static final long INDEFINITE
Method Detail |
public 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 exceptionpublic 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 exceptionpublic long startWork(Work work) throws WorkException
work
- the work
WorkException
- a generic error
WorkRejectedException
- if the work is rejectedpublic 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 rejectedpublic void scheduleWork(Work work) throws WorkException
work
- the work
WorkException
- a generic error
WorkRejectedException
- if the work is rejectedpublic 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 |