Class BaseRichBolt

    • Constructor Detail

      • BaseRichBolt

        public BaseRichBolt()
    • Method Detail

      • cleanup

        public void cleanup()
        Description copied from interface: IBolt
        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.

        Specified by:
        cleanup in interface IBolt