Class 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 Detail

      • doWork

        public void doWork()
        This method is executed by thread pool as the basic work operation.
        Specified by:
        doWork in interface com.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 interface com.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 interface com.sun.corba.ee.spi.threadpool.Work
        Returns:
        Time in milliseconds.
      • getName

        public String getName()
        Retrieves the name of the work.
        Specified by:
        getName in interface com.sun.corba.ee.spi.threadpool.Work
        Returns:
        Name of the work.
      • setName

        public void setName​(String name)
      • toString

        public String toString()
        Retrieves the string representation of work.
        Overrides:
        toString in class Object
        Returns:
        String representation of work.