| |
|
| java.lang.Object com.metaboss.util.ThreadSafeStorage
ThreadSafeStorage | public class ThreadSafeStorage (Code) | | This container can store one object of the certain type per thread
It is designed to encapsulate complexities of the threadsafe storage
It is recommended that storage itself is created in the class constructor
of the class instances of which will use it.
version: $Revsion: $ author: Rost Vashevnik |
get | public Object get()(Code) | | Gets an object from the storage
Object whatever was stored before or null if nothing stored for this thread |
put | public void put(Object pObject)(Code) | | Puts an object into the storage
Parameters: pObject - - an object to store |
remove | public Object remove()(Code) | | Removes an object from the storage
Object whatever was stored before or null if nothing was stored for this thread |
remove | public Object remove(Object pObjectToRemove)(Code) | | Removes data object from the storage
Parameters: pObjectToRemove - an object to remove Object which was stored or null if nothing was stored for this thread |
|
|
|