FileDocCategorySizeDatePackage
WorkAdapter.javaAPI DocGlassfish v2 API3219Fri May 04 22:33:00 BST 2007com.sun.ejb.containers.util

WorkAdapter

public class WorkAdapter extends Object implements com.sun.corba.ee.spi.orbutil.threadpool.Work
An adapter class that adapts Servicable interface to the new Work interface

Fields Summary
private long
enqueTime
private com.sun.enterprise.util.threadpool.Servicable
delegate
Constructors Summary
public WorkAdapter(com.sun.enterprise.util.threadpool.Servicable delegate)

        this.delegate = delegate;
    
Methods Summary
public voiddoWork()

        if (delegate != null) {
            delegate.service();
        }
    
public longgetEnqueueTime()

	    return enqueTime;
	
public java.lang.StringgetName()

	    return "WorkAdapter";
    
public voidsetEnqueueTime(long timeInMillis)

	    enqueTime = timeInMillis;