Interface ShutdownBehaviorAware
- All Known Implementing Classes:
BatchFireForgetProcessor,FireForgetProcessor
public interface ShutdownBehaviorAware
A marker interface that provides the ability to determine a component's shutdown behavior.
Components implementing this interface can specify whether they shut down immediately or gracefully
based on a system property. The shutdown behavior is determined dynamically at runtime.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ShutdownBehaviorDetermines the shutdown behavior based on the system property "helix.fireforget.immediate-shutdown".
-
Method Details
-
getShutdownBehavior
Determines the shutdown behavior based on the system property "helix.fireforget.immediate-shutdown". If the system property evaluates to a truthy value, the shutdown behavior will be IMMEDIATE. Otherwise, the shutdown behavior will be GRACEFUL.- Returns:
- the shutdown behavior, either ShutdownBehavior.IMMEDIATE or ShutdownBehavior.GRACEFUL
-