public final class CommonWorkManager extends Object implements javax.resource.spi.work.WorkManager
| Constructor and Description |
|---|
CommonWorkManager(String threadPoolId,
ConnectorRuntime runtime,
String raName,
ClassLoader cl)
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
void |
doWork(javax.resource.spi.work.Work work)
Executes the work instance.
|
void |
doWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
Executes the work instance.
|
void |
scheduleWork(javax.resource.spi.work.Work work)
Executes the work instance.
|
void |
scheduleWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
Executes the work instance.
|
long |
startWork(javax.resource.spi.work.Work work)
Executes the work instance.
|
long |
startWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
Executes the work instance.
|
public CommonWorkManager(String threadPoolId, ConnectorRuntime runtime, String raName, ClassLoader cl) throws ConnectorRuntimeException
threadPoolId - Id of the thread pool.ConnectorRuntimeException - if thread pool is not accessiblepublic void cleanUp()
public void doWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
doWork in interface javax.resource.spi.work.WorkManagerwork - work instance from resource adapterjavax.resource.spi.work.WorkException - if there is an exception while executing work.public void doWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
doWork in interface javax.resource.spi.work.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.javax.resource.spi.work.WorkException - if there is an exception while executing work.public long startWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
startWork in interface javax.resource.spi.work.WorkManagerwork - work instance from resource adapterjavax.resource.spi.work.WorkException - if there is an exception while executing work.public long startWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
startWork in interface javax.resource.spi.work.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.javax.resource.spi.work.WorkException - if there is an exception while executing work.public void scheduleWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
scheduleWork in interface javax.resource.spi.work.WorkManagerwork - work instance from resource adapterjavax.resource.spi.work.WorkException - if there is an exception while executing work.public void scheduleWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
scheduleWork in interface javax.resource.spi.work.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.javax.resource.spi.work.WorkException - if there is an exception while executing work.Copyright © 2017. All rights reserved.