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 void
doWork()
This method is executed by thread pool as the basic work operation.long
getEnqueueTime()
Retrieves the time at which this work is enqueuedString
getName()
Retrieves the name of the work.void
log(String message)
void
setEnqueueTime(long tme)
Time at which this work is enqueued.void
setName(String name)
String
toString()
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:
doWork
in 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:
setEnqueueTime
in 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:
getEnqueueTime
in interfacecom.sun.corba.ee.spi.threadpool.Work
- Returns:
- Time in milliseconds.
-
getName
public String getName()
Retrieves the name of the work.- Specified by:
getName
in interfacecom.sun.corba.ee.spi.threadpool.Work
- Returns:
- Name of the work.
-
setName
public void setName(String name)
-
-