org.mmbase.bridge.util
Class CloudThreadLocal
java.lang.Object
org.mmbase.bridge.util.CloudThreadLocal
public class CloudThreadLocal
- extends Object
ThreadLocal to store an MMBase Bridge Cloud
- Since:
- MMBase-1.9
- Version:
- $Id: CloudThreadLocal.java 38503 2009-09-08 14:16:12Z michiel $
|
Method Summary |
static void |
bind(Cloud cloud)
Associates the given cloud with the current thread of execution. |
static Cloud |
currentCloud()
|
static Cloud |
unbind()
Unassociate a previously bound cloud from the current thread of execution. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloudThreadLocal
public CloudThreadLocal()
currentCloud
public static Cloud currentCloud()
bind
public static void bind(Cloud cloud)
- Associates the given cloud with the current thread of execution.
- Parameters:
cloud - The cloud to bind.
unbind
public static Cloud unbind()
- Unassociate a previously bound cloud from the current thread of execution.
- Returns:
- The cloud which was unbound.
MMBase2 Bridge 2.0-SNAPSHOT - 2013-03-30T06:34