Package com.databricks.jdbc.common.util
Class DatabricksThreadContextHolder
- java.lang.Object
-
- com.databricks.jdbc.common.util.DatabricksThreadContextHolder
-
public class DatabricksThreadContextHolder extends Object
-
-
Constructor Summary
Constructors Constructor Description DatabricksThreadContextHolder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclearAllContext()static voidclearConnectionContext()static voidclearStatementInfo()static IDatabricksConnectionContextgetConnectionContext()static IntegergetRetryCount()static StringgetSessionId()static StringgetStatementId()static StatementTypegetStatementType()static voidsetConnectionContext(IDatabricksConnectionContext context)static voidsetRetryCount(Integer retryCount)static voidsetSessionId(String sessionId)static voidsetStatementId(StatementId statementId)static voidsetStatementId(String statementId)static voidsetStatementType(StatementType statementType)
-
-
-
Method Detail
-
setConnectionContext
public static void setConnectionContext(IDatabricksConnectionContext context)
-
getConnectionContext
public static IDatabricksConnectionContext getConnectionContext()
-
setStatementId
public static void setStatementId(StatementId statementId)
-
setStatementId
public static void setStatementId(String statementId)
-
getStatementId
public static String getStatementId()
-
setSessionId
public static void setSessionId(String sessionId)
-
getSessionId
public static String getSessionId()
-
setStatementType
public static void setStatementType(StatementType statementType)
-
getRetryCount
public static Integer getRetryCount()
-
setRetryCount
public static void setRetryCount(Integer retryCount)
-
getStatementType
public static StatementType getStatementType()
-
clearConnectionContext
public static void clearConnectionContext()
-
clearStatementInfo
public static void clearStatementInfo()
-
clearAllContext
public static void clearAllContext()
-
-