T - public class ThreadSafeMemoryRegistry<T extends Serializable> extends MemoryRegistry<T> implements ThreadSafeRegistry
MemoryRegistry that may be accesses by multiple threads silmutaneously.registry| Constructor and Description |
|---|
ThreadSafeMemoryRegistry(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
lock() |
void |
removeObject(int id) |
void |
unlock() |
addObject, getAllObjects, getObjectpublic ThreadSafeMemoryRegistry(String name)
public void lock()
lock in interface ThreadSafeRegistrypublic void unlock()
unlock in interface ThreadSafeRegistrypublic void removeObject(int id)
removeObject in interface ThreadSafeRegistryCopyright © 2019. All rights reserved.