public class CountWindowPolicy<T> extends java.lang.Object implements IWindowingPolicy<T>
Constructor and Description |
---|
CountWindowPolicy(long count,
IManager manager,
IEvictionPolicy<T> evictionPolicy) |
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 CountWindowPolicy(long count, IManager manager, IEvictionPolicy<T> evictionPolicy)
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