1 23 24 package com.sun.ejb.containers.util; 25 26 import com.sun.corba.ee.spi.orbutil.threadpool.Work; 27 import com.sun.corba.ee.spi.orbutil.threadpool.ThreadPoolManager; 28 import com.sun.corba.ee.spi.orbutil.threadpool.ThreadPool; 29 import com.sun.enterprise.util.S1ASThreadPoolManager; 30 import com.sun.enterprise.util.ORBManager; 31 import com.sun.enterprise.util.threadpool.Servicable; 32 33 36 public class WorkAdapter 37 implements Work 38 { 39 private long enqueTime; 40 private Servicable delegate; 41 42 48 public WorkAdapter(Servicable delegate) { 49 this.delegate = delegate; 50 } 51 52 public void setEnqueueTime(long timeInMillis) { 53 enqueTime = timeInMillis; 54 } 55 56 public long getEnqueueTime() { 57 return enqueTime; 58 } 59 60 public void doWork() { 61 if (delegate != null) { 62 delegate.service(); 63 } 64 } 65 66 public String getName() { 67 return "WorkAdapter"; 68 } 69 70 } 71 | Popular Tags |