FileDocCategorySizeDatePackage
AERunnableObject.javaAPI DocAzureus 3.0.3.41637Fri Mar 30 14:40:22 BST 2007org.gudy.azureus2.core3.util

AERunnableObject

public abstract class AERunnableObject extends Object implements Runnable
author
TuxPaper
created
Mar 22, 2007

Fields Summary
private Object[]
returnValueObject
private AESemaphore
sem
private String
id
Constructors Summary
Methods Summary
public voidrun()


	   
		try {
			Object o = runSupport();
			if (returnValueObject != null && returnValueObject.length > 0) {
				returnValueObject[0] = o;
			}
		} catch (Throwable e) {
			Debug.out(id, e);
		} finally {
			if (sem != null) {
				sem.release();
			}
		}
	
public abstract java.lang.ObjectrunSupport()

public voidsetupReturn(java.lang.String ID, java.lang.Object[] returnValueObject, AESemaphore sem)

		id = ID;
		this.returnValueObject = returnValueObject;
		this.sem = sem;