KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > performance > http > load > StopWorkItem


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tctest.performance.http.load;
5
6 public class StopWorkItem implements WorkItem {
7
8   public void execute(StatsCollector c) {
9     throw new RuntimeException JavaDoc("Wow! Error in the Code!");
10   }
11
12   public boolean stop() {
13     return true;
14   }
15
16   public boolean expired(long currenttime) {
17     return false;
18   }
19
20   public void done() {
21     //
22
}
23 }
24
Popular Tags