Klasse ThreadLocalStorageImpl
java.lang.Object
org.apache.fulcrum.yaafi.framework.tls.ThreadLocalStorageImpl
- Alle implementierten Schnittstellen:
ThreadLocalStorage
Implementation of
ThreadLocalStorage.
The code was pasted from the Hivemnind container written by
Howard Lewis Ship and Harish Krishnaswamy- Autor:
- Siegfried Goeschl
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidclear()Clears all keys.booleancontainsKey(String key) Checks if the thread-local object for the given key existsReturns the thread-local object for the given key, or null if no such object exists.voidStores the value object at the given key, overwriting any prior value that may have been stored at that key.
-
Konstruktordetails
-
ThreadLocalStorageImpl
public ThreadLocalStorageImpl()
-
-
Methodendetails
-
get
Beschreibung aus Schnittstelle kopiert:ThreadLocalStorageReturns the thread-local object for the given key, or null if no such object exists.- Angegeben von:
getin SchnittstelleThreadLocalStorage- Parameter:
key- the key for the lookup- Gibt zurück:
- the object
-
put
Beschreibung aus Schnittstelle kopiert:ThreadLocalStorageStores the value object at the given key, overwriting any prior value that may have been stored at that key. Care should be taken in selecting keys to avoid naming conflicts; in general, prefixing a key with a module id is a good idea.- Angegeben von:
putin SchnittstelleThreadLocalStorage- Parameter:
key- the key of the object to storevalue- the value of the object to store
-
containsKey
Beschreibung aus Schnittstelle kopiert:ThreadLocalStorageChecks if the thread-local object for the given key exists- Angegeben von:
containsKeyin SchnittstelleThreadLocalStorage- Parameter:
key- the key for the lookup- Gibt zurück:
- true the object exists
-
clear
public void clear()Beschreibung aus Schnittstelle kopiert:ThreadLocalStorageClears all keys.- Angegeben von:
clearin SchnittstelleThreadLocalStorage
-