public ThreadContext getThreadContext ( ) { if ( useInheritableThreadLocal && ! SSLConfigManager . getInstance ( ) . isServerProcess ( ) ) { ThreadContext context = inheritableThreadLocStorage . get ( ) ; if ( context == null ) { context = new ThreadContext ( ) ; inheritableThreadLocStorage . set ( context ) ; } return context ; } ThreadContext context = threadLocStorage . get ( ) ; if ( context == null ) { context = new ThreadContext ( ) ; threadLocStorage . set ( context ) ; } return context ; }
Access the current thread context .