1 22 package test.asynchronous; 23 24 29 30 public class BusinessModelWithStaticCleanupWithParameters 31 extends BusinessModel { 32 public BusinessModelWithStaticCleanupWithParameters() {} 33 public BusinessModelWithStaticCleanupWithParameters(long sleepTime) { 34 super(sleepTime); 35 } 36 39 static public long processBusinessModel4( 40 long aSleepTime, 41 Parameter parameter) { 42 sleep(aSleepTime); 43 return aSleepTime; 44 } 45 static public void cleanup(long sleepTime, Parameter parameter) { 46 parameter.bCleanupCalled = true; 47 } 48 } 49 | Popular Tags |