public abstract class BaseRichBolt extends BaseComponent implements IRichBolt
|Constructor and Description|
|Modifier and Type||Method and Description|
Called when an IBolt is going to be shutdown.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void cleanup()
Called when an IBolt is going to be shutdown. Storm will make a best-effort attempt to call this if the worker shutdown is orderly. The
Config.SUPERVISOR_WORKER_SHUTDOWN_SLEEP_SECS setting controls how long orderly shutdown is allowed to take. There is no guarantee that cleanup will be called if shutdown is not orderly, or if the shutdown exceeds the time limit.
The one context where cleanup is guaranteed to be called is when a topology is killed when running Storm in local mode.
Copyright © 2019 The Apache Software Foundation. All rights reserved.