public final class OneWork extends Object implements com.sun.corba.ee.spi.threadpool.Work
Modifier and Type | Method and 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 enqueued
|
String |
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.
|
public void doWork()
doWork
in interface com.sun.corba.ee.spi.threadpool.Work
public void log(String message)
public void setEnqueueTime(long tme)
setEnqueueTime
in interface com.sun.corba.ee.spi.threadpool.Work
tme
- Time in milliseconds.public long getEnqueueTime()
getEnqueueTime
in interface com.sun.corba.ee.spi.threadpool.Work
public String getName()
getName
in interface com.sun.corba.ee.spi.threadpool.Work
public void setName(String name)
Copyright © 2018. All rights reserved.