public interface EmitStrategy
| Modifier and Type | Interface and Description |
|---|---|
static class |
EmitStrategy.StrategyType |
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
log |
| Modifier and Type | Method and Description |
|---|---|
static EmitStrategy |
onWindowClose()
This strategy indicates that the aggregated result for a window will only be emitted when the
window closes instead of when there's an update to the window.
|
static EmitStrategy |
onWindowUpdate()
This strategy indicates that the aggregated result for a window will be emitted every time
when there's an update to the window instead of when the window closes.
|
EmitStrategy.StrategyType |
type()
Returns the strategy type.
|
EmitStrategy.StrategyType type()
static EmitStrategy onWindowClose()
This strategy should only be used for windows which can close. An exception will be thrown
if it's used with UnlimitedWindow.
EmitStrategy instanceTimeWindows,
SlidingWindows,
SessionWindows,
UnlimitedWindows,
WindowUpdateStrategystatic EmitStrategy onWindowUpdate()
EmitStrategy instanceTimeWindows,
SlidingWindows,
SessionWindows,
UnlimitedWindows,
WindowCloseStrategy