|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.connectors.work.CommonWorkManager
public final class CommonWorkManager
WorkManager implementation.
| Field Summary |
|---|
| Fields inherited from interface javax.resource.spi.work.WorkManager |
|---|
IMMEDIATE, INDEFINITE, UNKNOWN |
| Constructor Summary | |
|---|---|
CommonWorkManager(java.lang.String threadPoolId,
ConnectorRuntime runtime,
java.lang.String raName,
java.lang.ClassLoader cl)
Private constructor. |
|
| Method Summary | |
|---|---|
void |
cleanUp()
|
void |
doWork(Work work)
Executes the work instance. |
void |
doWork(Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener)
Executes the work instance. |
void |
scheduleWork(Work work)
Executes the work instance. |
void |
scheduleWork(Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener)
Executes the work instance. |
long |
startWork(Work work)
Executes the work instance. |
long |
startWork(Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener)
Executes the work instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommonWorkManager(java.lang.String threadPoolId,
ConnectorRuntime runtime,
java.lang.String raName,
java.lang.ClassLoader cl)
throws ConnectorRuntimeException
threadPoolId - Id of the thread pool.
ConnectorRuntimeException - if thread pool is not accessible| Method Detail |
|---|
public void cleanUp()
public void doWork(Work work)
throws WorkException
doWork in interface WorkManagerwork - work instance from resource adapter
WorkException - if there is an exception while executing work.
public void doWork(Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener)
throws WorkException
doWork in interface WorkManagerwork - work instance from resource adapterstartTimeout - Timeout for the work.execContext - Execution context in which the work will be executed.workListener - Listener from RA that will listen to work events.
WorkException - if there is an exception while executing work.
public long startWork(Work work)
throws WorkException
startWork in interface WorkManagerwork - work instance from resource adapter
WorkException - if there is an exception while executing work.
public long startWork(Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener)
throws WorkException
startWork in interface WorkManagerwork - work instance from resource adapterstartTimeout - Timeout for the work.execContext - Execution context in which the work will be executed.workListener - Listener from RA that will listen to work events.
WorkException - if there is an exception while executing work.
public void scheduleWork(Work work)
throws WorkException
scheduleWork in interface WorkManagerwork - work instance from resource adapter
WorkException - if there is an exception while executing work.
public void scheduleWork(Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener)
throws WorkException
scheduleWork in interface WorkManagerwork - work instance from resource adapterstartTimeout - Timeout for the work.execContext - Execution context in which the work will be executed.workListener - Listener from RA that will listen to work events.
WorkException - if there is an exception while executing work.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||