Parent Directory | Revision Log | Patch
revision 393 by torben, Mon Oct 5 19:44:40 2009 UTC | revision 397 by torben, Tue Oct 6 05:22:40 2009 UTC | |
---|---|---|
# | Line 43 public class OpenState implements Circui | Line 43 public class OpenState implements Circui |
43 | tripTime.set(now); | tripTime.set(now); |
44 | } | } |
45 | ||
46 | public String getName() { | |
47 | return "Open"; | |
48 | } | |
49 | ||
50 | public long getTimeout() { | |
51 | return timeout.get(); | |
52 | } | |
53 | ||
54 | public long getElapsed() { | |
55 | long now = System.currentTimeMillis(); | |
56 | long elapsed = now - tripTime.get(); | |
57 | return elapsed; | |
58 | } | |
59 | ||
60 | } | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |