public class ASCCacheImpl extends java.lang.Object implements AppServerContextCache
Constructor and Description |
---|
ASCCacheImpl(DefaultMutableAppServerContext owner) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
commit(boolean current)
Commits changes to the cache.
|
boolean |
containsKey(java.lang.Object key) |
boolean |
containsKey(java.lang.String key) |
void |
fireEvent(java.util.List<MutableContextEvent.Change> events) |
ExtendedBinding |
get(java.lang.Object key) |
ExtendedBinding |
get(java.lang.String key) |
java.util.Collection<ExtendedBinding> |
getCommittedValues() |
boolean |
isCurrent() |
boolean |
isEmpty() |
java.util.Set<java.lang.String> |
keySet() |
protected void |
markCurrent(boolean current) |
ExtendedBinding |
put(java.lang.String key,
ExtendedBinding newValue) |
void |
putAll(java.util.Map<java.lang.String,ExtendedBinding> m) |
void |
remove(java.util.Collection<java.lang.String> keys) |
ExtendedBinding |
remove(java.lang.Object key) |
ExtendedBinding |
remove(java.lang.String key) |
void |
rollback() |
void |
set(java.util.Map<java.lang.String,ExtendedBinding> m) |
int |
size() |
public ASCCacheImpl(DefaultMutableAppServerContext owner)
public ExtendedBinding put(java.lang.String key, ExtendedBinding newValue)
put
in interface AppServerContextCache
public ExtendedBinding remove(java.lang.Object key)
public void remove(java.util.Collection<java.lang.String> keys)
remove
in interface AppServerContextCache
public void putAll(java.util.Map<java.lang.String,ExtendedBinding> m)
putAll
in interface AppServerContextCache
public void set(java.util.Map<java.lang.String,ExtendedBinding> m)
set
in interface AppServerContextCache
public void clear()
clear
in interface AppServerContextCache
public void fireEvent(java.util.List<MutableContextEvent.Change> events)
public int size()
size
in interface AppServerContextCache
public boolean isEmpty()
isEmpty
in interface AppServerContextCache
public boolean containsKey(java.lang.Object key)
public ExtendedBinding get(java.lang.Object key)
public java.util.Set<java.lang.String> keySet()
keySet
in interface AppServerContextCache
public boolean isCurrent()
isCurrent
in interface AppServerContextCache
protected void markCurrent(boolean current)
public ExtendedBinding remove(java.lang.String key)
remove
in interface AppServerContextCache
public boolean containsKey(java.lang.String key)
containsKey
in interface AppServerContextCache
public ExtendedBinding get(java.lang.String key)
get
in interface AppServerContextCache
public void commit(boolean current)
AppServerContextCache
commit
in interface AppServerContextCache
current
- marks the cache as having the latest data, which may be
used to optimize future lookups and list operations.public void rollback()
rollback
in interface AppServerContextCache
public java.util.Collection<ExtendedBinding> getCommittedValues()
getCommittedValues
in interface AppServerContextCache