FileDocCategorySizeDatePackage
BusinessModel.javaAPI DocJBoss 4.2.12356Fri Jul 13 21:02:22 BST 2007test.asynchronous

BusinessModel

public class BusinessModel extends Object
version
$Revision: 57186 $
author
{Claude Hussenet Independent Consultant}.

Fields Summary
protected long
sleepTime
public boolean
bCleanupCalled
Constructors Summary
public BusinessModel()

	  
public BusinessModel(long sleepTime)

		this.sleepTime = sleepTime;
	
Methods Summary
public voidcallPrivateMethod()

@org.jboss.aspects.asynchronous.aspects.jboss.Asynchronous

		processBusinessModel3();
	
public voidprocessBusinessModel()

@org.jboss.aspects.asynchronous.aspects.jboss.Asynchronous

		sleep(sleepTime);
	
public longprocessBusinessModel2(long aSleepTime)

@org.jboss.aspects.asynchronous.aspects.jboss.Asynchronous

		if (aSleepTime < 0) {
			return 0 / 0;
		}
		sleep(aSleepTime);
		return aSleepTime;
	
private voidprocessBusinessModel3()

@org.jboss.aspects.asynchronous.aspects.jboss.Asynchronous

		sleep(sleepTime);
	
public static longprocessBusinessModel4(long aSleepTime, Parameter parameter)

@org.jboss.aspects.asynchronous.aspects.jboss.Asynchronous

		sleep(aSleepTime);
		return aSleepTime;
	
public static voidsleep(long sleep)

		try {
			Thread.sleep(sleep);
		} catch (Exception e) {}