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

AERunnableBoolean

public abstract class AERunnableBoolean extends Object implements Runnable
author
TuxPaper
created
Mar 21, 2007

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


	   
		try {
			//System.out.println(this + "]" + id + " run start");
			boolean b = runSupport();
			//System.out.println(this + "]" + id + " runSupport Done: ret=" + b);
			if (returnValueObject != null && returnValueObject.length > 0) {
				returnValueObject[0] = b;
			}
		} catch (Throwable e) {
			Debug.out(id, e);
		} finally {
			//System.out.println(this + "]" + id + " sem=" + sem);
			if (sem != null) {
				//System.out.println(this + "]" + id + " sem Release");
				sem.release();
			}
		}
	
public abstract booleanrunSupport()

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

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