Class OneWork
- java.lang.Object
-
- com.sun.enterprise.connectors.work.OneWork
-
- All Implemented Interfaces:
com.sun.corba.ee.spi.threadpool.Work
public final class OneWork extends Object implements com.sun.corba.ee.spi.threadpool.Work
Represents one piece of work that will be submitted to the workqueue.- Author:
- Binod P.G
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoWork()This method is executed by thread pool as the basic work operation.longgetEnqueueTime()Retrieves the time at which this work is enqueuedStringgetName()Retrieves the name of the work.voidlog(String message)voidsetEnqueueTime(long tme)Time at which this work is enqueued.voidsetName(String name)StringtoString()Retrieves the string representation of work.
-
-
-
Method Detail
-
doWork
public void doWork()
This method is executed by thread pool as the basic work operation.- Specified by:
doWorkin interfacecom.sun.corba.ee.spi.threadpool.Work
-
log
public void log(String message)
-
setEnqueueTime
public void setEnqueueTime(long tme)
Time at which this work is enqueued.- Specified by:
setEnqueueTimein interfacecom.sun.corba.ee.spi.threadpool.Work- Parameters:
tme- Time in milliseconds.
-
getEnqueueTime
public long getEnqueueTime()
Retrieves the time at which this work is enqueued- Specified by:
getEnqueueTimein interfacecom.sun.corba.ee.spi.threadpool.Work- Returns:
- Time in milliseconds.
-
getName
public String getName()
Retrieves the name of the work.- Specified by:
getNamein interfacecom.sun.corba.ee.spi.threadpool.Work- Returns:
- Name of the work.
-
setName
public void setName(String name)
-
-