Class SqlLifecycleManager

java.lang.Object
org.apache.druid.sql.SqlLifecycleManager

public class SqlLifecycleManager extends Object
This class manages only authorized DirectStatements submitted via HTTP, such as SqlResource. The main use case of this class is tracking running queries so that the cancel API can identify the statements to cancel. This class is thread-safe as there are 2 or more threads that can access statements at the same time for query running or query canceling. For managing and canceling native queries, see QueryScheduler. As its name indicates, it also performs resource scheduling for native queries based on query lanes QueryLaningStrategy.
See Also: