get a binary snapshot of state usually invoked by the framework
get a binary snapshot of state usually invoked by the framework
recover state to a previous checkpoint usually invoked by the framework
recover state to a previous checkpoint usually 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
unwrap the raw value of state
unwrap the raw value of state
set next checkpoint time should be invoked by the framework
set next checkpoint time should be invoked by the framework
MonoidState uses Algebird Monoid to aggregate state
on start, state value is initialized to monoid.zero on each new message, existing state value is aggregated with the incoming value using monoid.plus to get a new state value