get a binary snapshot of state usually invoked by the framework
get a binary snapshot of state usually invoked by the framework
unwrap the raw value of state
unwrap the raw value of state
recover state to a previous checkpoint usually invoked by the framework
recover state to a previous checkpoint usually invoked by the framework
set next checkpoint time should be invoked by the framework
set next checkpoint time should be invoked by the framework
update state on a new message this is invoked by user
update state on a new message this is invoked by user
this is a list of states, each of which is bounded by a time window state of each window doesn't affect each other
WindowState requires a Algebird Group to be passed in Group augments Monoid with a minus function which makes it possible to undo the update by messages that have left the window