1. /*
  2. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package com.sun.corba.se.spi.orbutil.threadpool;
  6. public interface Work
  7. {
  8. /**
  9. * This method denotes the actual work that is done by the work item.
  10. */
  11. public void doWork();
  12. /**
  13. * This methods sets the time in millis in the work item, when this
  14. * work item was enqueued in the work queue.
  15. */
  16. public void setEnqueueTime(long timeInMillis);
  17. /**
  18. * This methods gets the time in millis in the work item, when this
  19. * work item was enqueued in the work queue.
  20. */
  21. public long getEnqueueTime();
  22. /**
  23. * This method will return the name of the work item.
  24. */
  25. public String getName();
  26. }
  27. // End of file.