public class ThreadLocalScopeCache extends Object implements ScopeCache
Constructor and Description |
---|
ThreadLocalScopeCache() |
Modifier and Type | Method and Description |
---|---|
Collection<Object> |
clear()
Clear the cache and return all objects in an unmodifiable collection.
|
Object |
get(String name)
Get the named object from the cache.
|
Object |
put(String name,
Object value)
Put a value in the cache if the key is not already used.
|
Object |
remove(String name)
Remove the object with this name from the cache.
|
public Object remove(String name)
ScopeCache
remove
in interface ScopeCache
name
- the object namepublic Collection<Object> clear()
ScopeCache
clear
in interface ScopeCache
public Object get(String name)
ScopeCache
get
in interface ScopeCache
name
- the name of the objectpublic Object put(String name, Object value)
ScopeCache
put
in interface ScopeCache
name
- the keyvalue
- the new candidate valueCopyright © 2017 Pivotal Software, Inc.. All rights reserved.