logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: r1178138 - /logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/main/java/org/apache/logging/log4j/core/filter/BurstFilter.java
Date Sun, 02 Oct 2011 07:25:52 GMT
Author: rgoers
Date: Sun Oct  2 07:25:51 2011
New Revision: 1178138

URL: http://svn.apache.org/viewvc?rev=1178138&view=rev
Log:
Add javadoc. Remove unused variable

Modified:
    logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/main/java/org/apache/logging/log4j/core/filter/BurstFilter.java

Modified: logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/main/java/org/apache/logging/log4j/core/filter/BurstFilter.java
URL: http://svn.apache.org/viewvc/logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/main/java/org/apache/logging/log4j/core/filter/BurstFilter.java?rev=1178138&r1=1178137&r2=1178138&view=diff
==============================================================================
--- logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/main/java/org/apache/logging/log4j/core/filter/BurstFilter.java
(original)
+++ logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/main/java/org/apache/logging/log4j/core/filter/BurstFilter.java
Sun Oct  2 07:25:51 2011
@@ -72,11 +72,6 @@ public class BurstFilter extends FilterB
 
     private final Queue<LogDelay> available = new ConcurrentLinkedQueue<LogDelay>();
 
-    /**
-     * Time of last token removal.
-     */
-    private long lastTokenRemovedTime;
-
     private BurstFilter(Level level, long burstInterval, long maxBurst,
                         Result onMatch, Result onMismatch) {
         super(onMatch, onMismatch);
@@ -130,10 +125,17 @@ public class BurstFilter extends FilterB
 
     }
 
+    /**
+     * Returns the number of available slots. Used for unit testing.
+     * @return The number of available slots.
+     */
     public int getAvailable() {
         return available.size();
     }
 
+    /**
+     * Clear the history. Used for unit testing.
+     */
     public void clear() {
         Iterator<LogDelay> iter = history.iterator();
         while (iter.hasNext()) {
@@ -143,6 +145,9 @@ public class BurstFilter extends FilterB
         }
     }
 
+    /**
+     * Delay object to represent each log event that has occurred within the timespan.
+     */
     private class LogDelay implements Delayed {
 
         private long expireTime;



Mime
View raw message