public class DurationWindowPolicy<T> extends java.lang.Object implements IWindowingPolicy<T>
Constructor and Description |
---|
DurationWindowPolicy(long millis,
IManager<T> mgr,
IEvictionPolicy<T> policy) |
Modifier and Type | Method and Description |
---|---|
void |
reset() |
void |
shutdown() |
void |
start() |
java.lang.String |
toString() |
void |
track(Event<T> event) |
boolean |
validate() |
java.lang.String |
whyInvalid() |
public DurationWindowPolicy(long millis, IManager<T> mgr, IEvictionPolicy<T> policy)
public boolean validate()
validate
in interface IWindowingPolicy<T>
public java.lang.String whyInvalid()
whyInvalid
in interface IWindowingPolicy<T>
public void track(Event<T> event)
track
in interface IWindowingPolicy<T>
public void reset()
reset
in interface IWindowingPolicy<T>
public void start()
start
in interface IWindowingPolicy<T>
public void shutdown()
shutdown
in interface IWindowingPolicy<T>
public java.lang.String toString()
toString
in class java.lang.Object