|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.jca.core.workmanager.WorkWrapper
public class WorkWrapper

Wraps the resource adapter's work.
| Constructor Summary | |
|---|---|
WorkWrapper(WorkManagerImpl workManager,
javax.resource.spi.work.Work work,
javax.resource.spi.work.ExecutionContext executionContext,
javax.resource.spi.work.WorkListener workListener,
CountDownLatch startedLatch,
CountDownLatch completedLatch,
long startTime)
Create a new WorkWrapper |
|
| Method Summary | ||
|---|---|---|
void |
addWorkContext(Class<? extends javax.resource.spi.work.WorkContext> workContextClass,
javax.resource.spi.work.WorkContext workContext)
Adds new work context. |
|
protected void |
cancel()
Cancel |
|
protected void |
end()
End |
|
javax.resource.spi.work.ExecutionContext |
getExecutionContext()
Retrieve the exection context |
|
javax.resource.spi.work.Work |
getWork()
Retrieve the work |
|
|
getWorkContext(Class<T> workContextClass)
Returns work context instance. |
|
javax.resource.spi.work.WorkException |
getWorkException()
Get any exception |
|
javax.resource.spi.work.WorkListener |
getWorkListener()
Retrieve the work listener |
|
org.jboss.jca.core.api.workmanager.WorkManager |
getWorkManager()
Get the work manager |
|
void |
run()
Run |
|
protected void |
start()
Start |
|
String |
toString()
String representation |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WorkWrapper(WorkManagerImpl workManager,
javax.resource.spi.work.Work work,
javax.resource.spi.work.ExecutionContext executionContext,
javax.resource.spi.work.WorkListener workListener,
CountDownLatch startedLatch,
CountDownLatch completedLatch,
long startTime)
workManager - the work managerwork - the workexecutionContext - the execution contextworkListener - the WorkListenerstartedLatch - The latch for when work has startedcompletedLatch - The latch for when work has completedstartTime - The start time
IllegalArgumentException - for null work, execution context or a negative start timeout| Method Detail |
|---|
public org.jboss.jca.core.api.workmanager.WorkManager getWorkManager()
public javax.resource.spi.work.Work getWork()
public javax.resource.spi.work.ExecutionContext getExecutionContext()
public javax.resource.spi.work.WorkListener getWorkListener()
public javax.resource.spi.work.WorkException getWorkException()
public void run()
run in interface Runnable
protected void start()
throws javax.resource.spi.work.WorkException
javax.resource.spi.work.WorkException - for any errorprotected void end()
protected void cancel()
public <T> T getWorkContext(Class<T> workContextClass)
T - class type infoworkContextClass - work context type
public void addWorkContext(Class<? extends javax.resource.spi.work.WorkContext> workContextClass,
javax.resource.spi.work.WorkContext workContext)
workContext - new work contextworkContextClass - work context classpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||