public interface IStatefulBolt<T extends State> extends IStatefulComponent<T>
A bolt abstraction for supporting stateful computation. The state of the bolt is periodically checkpointed.
The framework provides at-least once guarantee for the state updates. The stateful bolts are expected to anchor the tuples while emitting and ack the input tuples once its processed.
| Modifier and Type | Method and Description | 
|---|---|
| void | cleanup() | 
| void | execute(Tuple input) | 
| void | prepare(Map stormConf,
       TopologyContext context,
       OutputCollector collector) | 
initState, preCommit, prePrepare, preRollbackdeclareOutputFields, getComponentConfigurationvoid prepare(Map stormConf, TopologyContext context, OutputCollector collector)
void execute(Tuple input)
IBolt.execute(Tuple)void cleanup()
IBolt.cleanup()Copyright © 2019 The Apache Software Foundation. All Rights Reserved.