|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.force.sdk.connector.threadlocal.ForceThreadLocalStore
public final class ForceThreadLocalStore
Class for storing connector configs in a ThreadLocal
cache.
Method Summary | ||
---|---|---|
static ForceConnectorConfig |
getConnectorConfig()
Retrieves the ForceConnectorConfig from the
ForceThreadLocalStore ThreadLocal cache. |
|
static
|
getThreadLocal(Class<T> clazz)
Retrieve the object of type clazz from the
ForceThreadLocalStore ThreadLocal cache. |
|
static void |
setConnectorConfig(ForceConnectorConfig config)
Sets the given ForceConnectorConfig in the
ForceThreadLocalStore ThreadLocal cache. |
|
static
|
setThreadLocal(Class<T> clazz,
T variable)
Sets an object of type clazz in the
ForceThreadLocalStore ThreadLocal cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ForceConnectorConfig getConnectorConfig()
ForceConnectorConfig
from the
ForceThreadLocalStore
ThreadLocal
cache.
ForceConnectorConfig
found in the ThreadLocal
cache; null
if the cache is emptypublic static void setConnectorConfig(ForceConnectorConfig config)
ForceConnectorConfig
in the
ForceThreadLocalStore
ThreadLocal
cache.
config
- the ForceConnectorConfig
to be added
to the ThreadLocal
cachepublic static <T> T getThreadLocal(Class<T> clazz)
clazz
from the
ForceThreadLocalStore
ThreadLocal
cache.
T
- describes the object type to be searched for in the ThreadLocal
cacheclazz
- the object type to be searched for in the ThreadLocal
cache
clazz
found in the ThreadLocal
cache; null
if no such object can be foundpublic static <T> void setThreadLocal(Class<T> clazz, T variable)
clazz
in the
ForceThreadLocalStore
ThreadLocal
cache.
T
- describes the object type to be added to the ThreadLocal
cacheclazz
- the object type to be added to the ThreadLocal
cachevariable
- the object to be added to the ThreadLocal
cache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |