|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.connectors.work.OneWork
public final class OneWork
Represents one piece of work that will be submitted to the workqueue.
| Method Summary | |
|---|---|
void |
doWork()
This method is executed by thread pool as the basic work operation. |
long |
getEnqueueTime()
Retrieves the time at which this work is enqueued |
java.lang.String |
getName()
Retrieves the name of the work. |
void |
log(java.lang.String message)
|
void |
setEnqueueTime(long tme)
Time at which this work is enqueued. |
void |
setName(java.lang.String name)
|
java.lang.String |
toString()
Retrieves the string representation of work. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void doWork()
doWork in interface com.sun.corba.ee.spi.orbutil.threadpool.Workpublic void log(java.lang.String message)
public void setEnqueueTime(long tme)
setEnqueueTime in interface com.sun.corba.ee.spi.orbutil.threadpool.Worktme - Time in milliseconds.public long getEnqueueTime()
getEnqueueTime in interface com.sun.corba.ee.spi.orbutil.threadpool.Workpublic java.lang.String getName()
getName in interface com.sun.corba.ee.spi.orbutil.threadpool.Workpublic void setName(java.lang.String name)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||