|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.util.threadpool.BasicTaskWrapper org.jboss.resource.work.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, 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 context
IllegalArgumentException
- for null work, execution context or a negative start timeoutMethod 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.Task
public int getPriority()
getPriority
in interface org.jboss.util.threadpool.Task
public long getStartTimeout()
getStartTimeout
in interface org.jboss.util.threadpool.Task
public long getCompletionTimeout()
getCompletionTimeout
in interface org.jboss.util.threadpool.Task
public void execute()
execute
in interface org.jboss.util.threadpool.Task
public void stop()
stop
in interface org.jboss.util.threadpool.Task
public 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.Task
public 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.Task
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |