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