Class DruidConnection

java.lang.Object
org.apache.druid.sql.avatica.DruidConnection

public class DruidConnection extends Object
Connection tracking for DruidMeta. Thread-safe.

Lock is the instance itself. Used here to protect two members, and in other code when we must resolve the connection after resolving the statement. The lock prevents closing the connection concurrently with an operation on a statement for that connection.