org.apache.cassandra.concurrent
Class ThreadLocalContext

java.lang.Object
  extended by org.apache.cassandra.concurrent.ThreadLocalContext

public class ThreadLocalContext
extends java.lang.Object

Use this implementation over Java's ThreadLocal or InheritableThreadLocal when you need to add multiple key/value pairs into ThreadLocalContext for a given thread.


Constructor Summary
ThreadLocalContext()
           
 
Method Summary
static Context get()
           
static void put(Context value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalContext

public ThreadLocalContext()
Method Detail

put

public static void put(Context value)

get

public static Context get()


Copyright © 2009 The Apache Software Foundation