/[projects]/miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/statistics/LoggingStatistics.java |
Parent Directory | Revision Log | Patch
revision 2571 by torben, Tue Jun 9 08:55:10 2015 UTC | revision 2572 by torben, Tue Jun 9 09:28:14 2015 UTC | |
---|---|---|
# | Line 9 public class LoggingStatistics extends A | Line 9 public class LoggingStatistics extends A |
9 | ||
10 | private LinkedList<LogEntry> log = new LinkedList<LogEntry>(); | private LinkedList<LogEntry> log = new LinkedList<LogEntry>(); |
11 | ||
12 | final int maxSize = 50; | static final int MAX_SIZE = 50; |
13 | ||
14 | public static class LogEntry { | public static class LogEntry { |
15 | public long time; | public long time; |
# | Line 86 public class LoggingStatistics extends A | Line 86 public class LoggingStatistics extends A |
86 | } | } |
87 | } | } |
88 | ||
89 | if(log.size() > maxSize) { | if(log.size() > MAX_SIZE) { |
90 | log.removeLast(); | log.removeLast(); |
91 | } | } |
92 |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |