Interface Work
- All Known Implementing Classes:
ListenerThreadImpl,ReaderThreadImpl,SocketFactoryAcceptorImpl,SocketFactoryConnectionImpl,SocketOrChannelAcceptorImpl,SocketOrChannelConnectionImpl
public interface Work
-
Method Summary
Modifier and TypeMethodDescriptionvoiddoWork()This method denotes the actual work that is done by the work item.longThis methods gets the time in millis in the work item, when this work item was enqueued in the work queue.getName()This method will return the name of the work item.voidsetEnqueueTime(long timeInMillis) This methods sets the time in millis in the work item, when this work item was enqueued in the work queue.
-
Method Details
-
doWork
void doWork()This method denotes the actual work that is done by the work item. -
setEnqueueTime
void setEnqueueTime(long timeInMillis) This methods sets the time in millis in the work item, when this work item was enqueued in the work queue. -
getEnqueueTime
long getEnqueueTime()This methods gets the time in millis in the work item, when this work item was enqueued in the work queue. -
getName
String getName()This method will return the name of the work item.
-