|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.threadpool.BasicTaskWrapper
org.jboss.resource.work.WorkWrapper
public class WorkWrapper
Wraps the resource adapter's work.
| Field Summary |
|---|
| Fields inherited from class org.jboss.util.threadpool.BasicTaskWrapper |
|---|
TASK_ACCEPTED, TASK_COMPLETED, TASK_NOT_ACCEPTED, TASK_REJECTED, TASK_STARTED, TASK_STOPPED |
| Fields inherited from interface org.jboss.util.threadpool.Task |
|---|
WAIT_FOR_COMPLETE, WAIT_FOR_START, WAIT_NONE |
| Constructor Summary | |
|---|---|
WorkWrapper(JBossWorkManager workManager,
javax.resource.spi.work.Work work,
int waitType,
long startTimeout,
javax.resource.spi.work.ExecutionContext executionContext,
javax.resource.spi.work.WorkListener workListener)
Create a new WorkWrapper |
|
| Method Summary | |
|---|---|
void |
accepted(long time)
|
void |
completed(long time,
Throwable throwable)
|
void |
execute()
|
long |
getBlockedElapsed()
Retrieve the time blocked |
long |
getCompletionTimeout()
|
javax.resource.spi.work.ExecutionContext |
getExecutionContext()
Retrieve the exection context |
int |
getPriority()
|
long |
getStartTimeout()
|
int |
getWaitType()
|
javax.resource.spi.work.Work |
getWork()
Retrieve the work |
javax.resource.spi.work.WorkException |
getWorkException()
Get any exception |
javax.resource.spi.work.WorkListener |
getWorkListener()
Retrieve the work listener |
JBossWorkManager |
getWorkManager()
Get the work manager |
void |
rejected(long time,
Throwable throwable)
|
void |
started(long time)
|
void |
stop()
|
String |
toString()
|
| Methods inherited from class org.jboss.util.threadpool.BasicTaskWrapper |
|---|
acceptTask, getElapsedTime, getStateString, getTaskCompletionTimeout, getTaskPriority, getTaskStartTimeout, getTaskWaitType, isComplete, rejectTask, run, setTask, stopTask, taskAccepted, taskCompleted, taskRejected, taskStarted, taskStop, waitForTask |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WorkWrapper(JBossWorkManager workManager,
javax.resource.spi.work.Work work,
int waitType,
long startTimeout,
javax.resource.spi.work.ExecutionContext executionContext,
javax.resource.spi.work.WorkListener workListener)
workManager - the work managerwork - the workwaitType - the waitTypeexecutionContext - the execution contextworkListener - the WorkListener
IllegalArgumentException - for null work, execution context or a negative start timeout| Method Detail |
|---|
public JBossWorkManager getWorkManager()
public javax.resource.spi.work.Work getWork()
public javax.resource.spi.work.WorkListener getWorkListener()
public javax.resource.spi.work.ExecutionContext getExecutionContext()
public long getBlockedElapsed()
public javax.resource.spi.work.WorkException getWorkException()
public int getWaitType()
getWaitType in interface org.jboss.util.threadpool.Taskpublic int getPriority()
getPriority in interface org.jboss.util.threadpool.Taskpublic long getStartTimeout()
getStartTimeout in interface org.jboss.util.threadpool.Taskpublic long getCompletionTimeout()
getCompletionTimeout in interface org.jboss.util.threadpool.Taskpublic void execute()
execute in interface org.jboss.util.threadpool.Taskpublic void stop()
stop in interface org.jboss.util.threadpool.Taskpublic void accepted(long time)
accepted in interface org.jboss.util.threadpool.Task
public void rejected(long time,
Throwable throwable)
rejected in interface org.jboss.util.threadpool.Taskpublic void started(long time)
started in interface org.jboss.util.threadpool.Task
public void completed(long time,
Throwable throwable)
completed in interface org.jboss.util.threadpool.Taskpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||