| javax.resource.spi.work.WorkManager
WorkManager | public interface WorkManager (Code) | | Interface used to associate the resource adapter with objects that implement
this interface.
|
IMMEDIATE | final static long IMMEDIATE(Code) | | No start delay
|
INDEFINITE | final static long INDEFINITE(Code) | | Indefinite start delay
|
UNKNOWN | final static long UNKNOWN(Code) | | Unknown/unspecified start delay
|
scheduleWork | void scheduleWork(Work work, long startTimeout, ExecutionContext ctx, WorkListener listener) throws WorkException(Code) | | Executes the work, the call returns immediately
Parameters: work - the work Parameters: startTimeout - the wait before execution Parameters: ctx - the execution context Parameters: listener - the work listener throws: WorkException - a generic error throws: WorkRejectedException - if the work is rejected |
startWork | long startWork(Work work, long startTimeout, ExecutionContext ctx, WorkListener listener) throws WorkException(Code) | | Executes the work, the call blocks until the work starts
Parameters: work - the work Parameters: startTimeout - the wait before execution Parameters: ctx - the execution context Parameters: listener - the work listener the time elapsed until the work starts throws: WorkException - a generic error throws: WorkRejectedException - if the work is rejected |
|
|