Class BurstFilter.LogDelay
- java.lang.Object
-
- org.apache.logging.log4j.core.filter.BurstFilter.LogDelay
-
- All Implemented Interfaces:
java.lang.Comparable<java.util.concurrent.Delayed>
,java.util.concurrent.Delayed
- Enclosing class:
- BurstFilter
private static class BurstFilter.LogDelay extends java.lang.Object implements java.util.concurrent.Delayed
Delay object to represent each log event that has occurred within the timespan. Consider this class private, package visibility for testing.
-
-
Field Summary
Fields Modifier and Type Field Description private long
expireTime
-
Constructor Summary
Constructors Constructor Description LogDelay(long expireTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.util.concurrent.Delayed delayed)
boolean
equals(java.lang.Object o)
long
getDelay(java.util.concurrent.TimeUnit timeUnit)
int
hashCode()
void
setDelay(long delay)
-
-
-
Method Detail
-
setDelay
public void setDelay(long delay)
-
getDelay
public long getDelay(java.util.concurrent.TimeUnit timeUnit)
- Specified by:
getDelay
in interfacejava.util.concurrent.Delayed
-
compareTo
public int compareTo(java.util.concurrent.Delayed delayed)
- Specified by:
compareTo
in interfacejava.lang.Comparable<java.util.concurrent.Delayed>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-