public final class WindowingStateMachine<T,R> extends Object implements StateMachine<com.codepoetics.protonpack.stateful.Window<T>,T,R>
| Modifier and Type | Method and Description |
|---|---|
Transition<com.codepoetics.protonpack.stateful.Window<T>,R> |
apply(com.codepoetics.protonpack.stateful.Window<T> window,
T item)
Apply the given input to the given state, returning a transition to a new state with 0 or more outputs.
|
com.codepoetics.protonpack.stateful.Window<T> |
getInitialState() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, create, finish, isTerminal, runner, runnerWithpublic Transition<com.codepoetics.protonpack.stateful.Window<T>,R> apply(com.codepoetics.protonpack.stateful.Window<T> window, T item)
StateMachineapply in interface StateMachine<com.codepoetics.protonpack.stateful.Window<T>,T,R>window - The state to transition from.item - The input to apply to the state.public com.codepoetics.protonpack.stateful.Window<T> getInitialState()
getInitialState in interface StateMachine<com.codepoetics.protonpack.stateful.Window<T>,T,R>Copyright © 2020. All rights reserved.