public class WindowingPolicy<T> extends java.lang.Object implements IWindowingPolicy<T>
Constructor and Description |
---|
WindowingPolicy(WindowType windowType,
WindowConfig.Count count) |
WindowingPolicy(WindowType windowType,
WindowConfig.Duration duration) |
Modifier and Type | Method and Description |
---|---|
WindowConfig.Count |
getCount() |
WindowConfig.Duration |
getDuration() |
WindowType |
getWindowType() |
void |
reset() |
void |
shutdown() |
void |
start() |
void |
track(Event<T> event) |
boolean |
validate() |
java.lang.String |
whyInvalid() |
public WindowingPolicy(WindowType windowType, WindowConfig.Count count)
public WindowingPolicy(WindowType windowType, WindowConfig.Duration duration)
public WindowType getWindowType()
public WindowConfig.Count getCount()
public WindowConfig.Duration getDuration()
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>